feat(ui): move stack icon to artist/album area
Icon now appears before artist/album metadata instead of title. Changes: - NowPlayingBar: icon in song-meta row (size 12px) - ExpandedPlayer: icon in new artist-album-row with separator (size 16px) - Removed song-title-row wrapper (not needed) - Icon placement: [icon] Artist · Album Remaining: FocusMode and MiniPlayer (next commit) cp
This commit is contained in:
1 parent
17cd6f0ae2
commit
2071149747
2 files changed
+33
-16
No files matched your search
@@ -245,12 +245,13 @@
|
||||
</div>
|
||||
|
||||
<div class="track-info">
|
||||
<div class="title-row">
|
||||
<StackIcon size={18} class="stack-icon" />
|
||||
<h1 class="title">{trackTitle}</h1>
|
||||
<h1 class="title">{trackTitle}</h1>
|
||||
<div class="artist-album-row">
|
||||
<StackIcon size={16} class="stack-icon" />
|
||||
<h2 class="artist">{artist}</h2>
|
||||
<span class="separator">·</span>
|
||||
<h3 class="album">{album}</h3>
|
||||
</div>
|
||||
<h2 class="artist">{artist}</h2>
|
||||
<h3 class="album">{album}</h3>
|
||||
<div class="quality-info">
|
||||
<QualityBadge {quality} {bitDepth} samplingRate={displaySamplingRate} />
|
||||
</div>
|
||||
@@ -527,27 +528,42 @@
|
||||
font-size: 22px;
|
||||
font-weight: 600;
|
||||
color: white;
|
||||
margin: 0;
|
||||
margin: 0 0 6px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.artist-album-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
.artist-album-row :global(.stack-icon) {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.artist-album-row .separator {
|
||||
color: rgba(255, 255, 255, 0.5);
|
||||
margin: 0 2px;
|
||||
}
|
||||
|
||||
.artist {
|
||||
font-size: 16px;
|
||||
font-weight: 400;
|
||||
color: rgba(255, 255, 255, 0.7);
|
||||
margin: 0 0 4px;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.album {
|
||||
font-size: 14px;
|
||||
font-size: 16px;
|
||||
font-weight: 400;
|
||||
color: rgba(255, 255, 255, 0.5);
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.quality-info {
|
||||
display: flex;
|
||||
|
||||
@@ -295,11 +295,9 @@
|
||||
</button>
|
||||
|
||||
<div class="song-info">
|
||||
<div class="song-title-row">
|
||||
<StackIcon size={14} class="stack-icon" />
|
||||
<span class="song-title" title={trackTitle}>{trackTitle}</span>
|
||||
</div>
|
||||
<span class="song-title" title={trackTitle}>{trackTitle}</span>
|
||||
<div class="song-meta">
|
||||
<StackIcon size={12} class="stack-icon" />
|
||||
{#if artist}
|
||||
<button class="meta-link" onclick={onArtistClick} title={$t('actions.goToArtist')}>
|
||||
{artist}
|
||||
@@ -701,8 +699,6 @@
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.song-meta {
|
||||
@@ -715,6 +711,11 @@
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.song-meta :global(.stack-icon) {
|
||||
flex-shrink: 0;
|
||||
margin-right: 2px;
|
||||
}
|
||||
|
||||
.meta-link {
|
||||
background: none;
|
||||
border: none;
|
||||
|
||||
Reference in new issue
Block a user