From: Chris Fulljames Date: Mon, 20 Jan 2025 14:59:36 +0000 (-0500) Subject: Minor UI tweaks and fixes X-Git-Url: https://littlesong.place/gitweb/?a=commitdiff_plain;h=44e29db890adf6bfce76abb90acdbc57f20abbaa;p=littlesongplace.git Minor UI tweaks and fixes --- diff --git a/static/player.js b/static/player.js index b6994af..4bc0899 100644 --- a/static/player.js +++ b/static/player.js @@ -42,10 +42,13 @@ function playCurrentSong() { // Play or pause the current song in the player function songPlayPause() { var audio = document.getElementById("player-audio"); + var button = document.getElementById("play-pause-button"); if (audio.paused) { + button.src = "/static/lsp_btn_pause.gif"; audio.play(); } else { + button.src = "/static/lsp_btn_play.gif"; audio.pause(); } } diff --git a/static/styles.css b/static/styles.css index da7c309..74b3f6e 100644 --- a/static/styles.css +++ b/static/styles.css @@ -171,7 +171,7 @@ div.song-buttons { a.song-list-button img { image-rendering: pixelated; - width: 24px; + width: 32px; } div.song-details { @@ -179,7 +179,14 @@ div.song-details { flex-direction: column; gap: 5px; align-items: left; - margin: 5px; +} + +div.song-description { + margin: 10px; +} + +div.song-tags { + margin: 10px; } [hidden] { @@ -188,21 +195,23 @@ div.song-details { /* Song Player */ #scroll-padding { - height: 110px; + height: 160px; } -div.player { +div.player-container { position: fixed; max-width: 700px; margin: auto; - margin: 10px; - padding: 10px; - box-shadow: 0px 0px 20px 0px; - border-radius: 10px; bottom: 0; left: 0; right: 0; - height: 100px; +} + +div.player { + margin: 10px; + box-shadow: 0px 0px 20px 0px; + border-radius: 10px; + min-height: 100px; /*border-top: 3px solid;*/ background: var(--yellow); } @@ -215,6 +224,7 @@ div.player-info { justify-content: center; align-items: center; gap: 10px; + padding: 10px; } div.player-controls { @@ -225,6 +235,7 @@ div.player-controls { align-items: center; gap: 10px; height: 50%; + padding: 10px; } a.player-button { @@ -233,14 +244,14 @@ a.player-button { a.player-button img { image-rendering: pixelated; - width: 24px; + width: 32px; } #player-position { display: inline-block; position: relative; width: 50%; - height: 100%; + height: 32px; } #player-position-bar { @@ -248,7 +259,7 @@ a.player-button img { display: inline-block; background-color: var(--purple); left: 100; - top: 23px; + top: 14px; width: 100%; height: 4px; } @@ -258,7 +269,7 @@ a.player-button img { display: inline-block; visibility: hidden; background-color: var(--pink); - top: 15px; + top: 6px; width: 20px; height: 20px; border-radius: 50%; diff --git a/templates/base.html b/templates/base.html index 0a99afc..f745f3f 100644 --- a/templates/base.html +++ b/templates/base.html @@ -52,32 +52,33 @@
-