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 <noreply@anthropic.com>
This commit is contained in:
1 parent
3d6b74b873
commit
db81595b02
2 files changed
+19
-15
No files matched your search
+3
-1
@@ -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}
|
||||
|
||||
Reference in new issue
Block a user