feat(queue): unified persistent queue list with playing indicator
Show all queue entries (played and upcoming) in one list instead of splitting into a "Now playing" card + "Next up" tail, so previously played tracks don't disappear and reappear when navigating back/forward. The current track is outlined and shows a reusable "hopping bars" PlayingIndicator (modern-sk style equalizer animation) for future reuse across track lists.
This commit is contained in:
+53
-30
@@ -404,6 +404,47 @@
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
/* ---- playing indicator ("hopping bars" equalizer, YTM-style) ---- */
|
||||
.playing-bars {
|
||||
display: inline-flex;
|
||||
align-items: flex-end;
|
||||
justify-content: center;
|
||||
gap: 2px;
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.playing-bars span {
|
||||
display: block;
|
||||
width: 3px;
|
||||
background: var(--lime);
|
||||
border-radius: 1px;
|
||||
height: 30%;
|
||||
animation: playing-bar-bounce 1s ease-in-out infinite;
|
||||
}
|
||||
.playing-bars span:nth-child(1) {
|
||||
animation-delay: -0.9s;
|
||||
}
|
||||
.playing-bars span:nth-child(2) {
|
||||
animation-delay: -0.3s;
|
||||
}
|
||||
.playing-bars span:nth-child(3) {
|
||||
animation-delay: -0.6s;
|
||||
}
|
||||
.playing-bars.paused span {
|
||||
animation-play-state: paused;
|
||||
height: 100%;
|
||||
}
|
||||
@keyframes playing-bar-bounce {
|
||||
0%,
|
||||
100% {
|
||||
height: 30%;
|
||||
}
|
||||
50% {
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
/* ============================================================
|
||||
PLAYER BAR
|
||||
============================================================ */
|
||||
@@ -604,36 +645,6 @@
|
||||
overflow-y: auto;
|
||||
padding: 12px 12px 18px;
|
||||
}
|
||||
.qd-now {
|
||||
display: flex;
|
||||
gap: 11px;
|
||||
align-items: center;
|
||||
padding: 10px;
|
||||
border-radius: var(--r-md);
|
||||
background: linear-gradient(
|
||||
180deg,
|
||||
rgba(190, 242, 100, 0.13),
|
||||
rgba(190, 242, 100, 0.05)
|
||||
);
|
||||
border: 1px solid rgba(190, 242, 100, 0.2);
|
||||
margin-bottom: 14px;
|
||||
}
|
||||
.qd-now .qt {
|
||||
min-width: 0;
|
||||
flex: 1;
|
||||
}
|
||||
.qd-now .qt .t {
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
color: var(--fg-1);
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
.qd-now .qt .r {
|
||||
font-size: 11px;
|
||||
color: var(--fg-3);
|
||||
}
|
||||
.qrow {
|
||||
display: flex;
|
||||
gap: 11px;
|
||||
@@ -649,6 +660,18 @@
|
||||
.qrow:hover {
|
||||
background: rgba(255, 255, 255, 0.04);
|
||||
}
|
||||
.qrow.current {
|
||||
background: linear-gradient(
|
||||
180deg,
|
||||
rgba(190, 242, 100, 0.13),
|
||||
rgba(190, 242, 100, 0.05)
|
||||
);
|
||||
box-shadow: 0 0 0 1px rgba(190, 242, 100, 0.35) inset;
|
||||
}
|
||||
.qrow.current .qt .t {
|
||||
color: var(--lime);
|
||||
font-weight: 600;
|
||||
}
|
||||
.qrow .grip {
|
||||
color: var(--fg-3);
|
||||
font-size: 15px;
|
||||
|
||||
Reference in New Issue
Block a user