From e5ff03f4f5a7945cd9a9e0ec96f387b2128de042 Mon Sep 17 00:00:00 2001 From: novatorem Date: Sun, 23 Aug 2020 13:23:00 -0400 Subject: [PATCH] Improved preview --- api/templates/preview.html | 28 ++++------------------------ api/templates/spotify.html.j2 | 23 ++++------------------- 2 files changed, 8 insertions(+), 43 deletions(-) diff --git a/api/templates/preview.html b/api/templates/preview.html index a6c12e0..faec3cb 100644 --- a/api/templates/preview.html +++ b/api/templates/preview.html @@ -6,28 +6,15 @@ .main { display: flex; - width: "480px"; - height: "133px"; + width: 480px; + height: 133px; } .container { border-radius: 5px; padding: 10px 10px 10px 0px; } - - .playing { - font-weight: bold; - color: #53b14f; - text-align: center; - display: flex; - justify-content: center; - align-items: center; - } - - .not-play { - color: #ff1616; - } - + .art { float: left; width: 27%; @@ -55,11 +42,6 @@ margin-bottom: 5px; } - .logo { - margin-left: 5px; - margin-top: 5px; - } - .cover { border-radius: 5px; height: 100px; @@ -106,9 +88,7 @@
Song
Arist
-
- {{content_bar|safe}} -
+
Bars
diff --git a/api/templates/spotify.html.j2 b/api/templates/spotify.html.j2 index b1d3b81..154f2b1 100644 --- a/api/templates/spotify.html.j2 +++ b/api/templates/spotify.html.j2 @@ -15,26 +15,13 @@ padding: 10px 10px 10px 0px; } - .playing { - font-weight: bold; - color: #53b14f; - text-align: center; - display: flex; - justify-content: center; - align-items: center; - } - - .not-play { - color: #ff1616; - } - .art { float: left; width: 27%; margin-left: -5px; } - .text { + .content { width: 71%; } @@ -97,16 +84,14 @@
- +
-
+
{{songName}}
{{artistName}}
-
- {{contentBar|safe}} -
+
{{contentBar|safe}}