From db81595b023f84e5af974aa00dcdcc122fb8f1b7 Mon Sep 17 00:00:00 2001 From: Honey Date: Sun, 21 Jun 2026 22:12:20 +0200 Subject: [PATCH] fix(ui): star button sits right next to track info, not far right Wrap player-info + star in .player-info-wrap (flex, align-items:center) so the star is immediately to the right of the text block and centered vertically with it, instead of floating to the far end of the 1fr column. Co-Authored-By: Claude Sonnet 4.6 --- index.html | 30 ++++++++++++++++-------------- styles.css | 4 +++- 2 files changed, 19 insertions(+), 15 deletions(-) diff --git a/index.html b/index.html index 40a4d16..4d584a1 100644 --- a/index.html +++ b/index.html @@ -471,22 +471,24 @@
♪
-
-
Kein Titel
-
- -
-
- — -
-
- 🔀 Shuffle - 🔁 Repeat +
+
+
Kein Titel
+
+ +
+
+ — +
+
+ 🔀 Shuffle + 🔁 Repeat +
+
-
diff --git a/styles.css b/styles.css index ac02626..35706e5 100644 --- a/styles.css +++ b/styles.css @@ -276,7 +276,8 @@ button:focus{outline:none} .player-art::after{content:'';position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:8px;height:8px;border-radius:50%;background:var(--bg);box-shadow:0 0 0 2px rgba(255,255,255,.15);pointer-events:none;opacity:0;transition:opacity .3s} .player-art.spinning::after{opacity:1} @keyframes spin{to{transform:rotate(360deg)}} -.player-info{min-width:0;flex:1;display:flex;flex-direction:column;justify-content:center} +.player-info-wrap{display:flex;align-items:center;gap:8px;min-width:0;overflow:hidden} +.player-info{min-width:0;display:flex;flex-direction:column;justify-content:center} .player-title{font-size:13px;font-weight:600;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:color .15s;margin-bottom:2px} #player-artist-name{color:var(--accent)} #player-artist-name span:hover{color:var(--accent)} @@ -919,6 +920,7 @@ button:focus{outline:none} } .player .player-art{width:46px!important;height:46px!important;border-radius:50%!important;flex-shrink:0} .player-track{max-width:none!important;width:100%!important;gap:8px} + .player-info-wrap{flex:1;min-width:0} .player-info{flex:1;min-width:0} .player-title{flex:1;min-width:0;font-size:12px!important} .player-artist{font-size:10px!important;margin-top:1px}