feat: track info drawer (Get Info-style)
Add a right-side track info drawer that sits to the right of the queue panel when both are open. Shows a large cover, title/artist/album links, a Play/Queue/Edit actions row, and Status/General/File/Identifiers sections (empty rows omitted). Opens from the track context menu, the player now-playing tile, and the queue now-playing card. - ui slice: trackInfoId + open/closeTrackInfo - TrackInfoDrawer rendered after QueuePanel in AppShell; overlays content on narrow viewports - map source/createdAt/enrichedAt from the wire (were unmapped) - formatDateTime helper, info icon, i18n (en/ru) - drop orphaned toggleNowPlaying/isNowPlayingOpen from player slice Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -724,6 +724,164 @@
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
/* ============================================================
|
||||
TRACK INFO DRAWER (rightmost — sits right of the queue drawer)
|
||||
============================================================ */
|
||||
/* Same width-collapse pattern as .qd. Rendered after QueuePanel in AppShell so
|
||||
when both are open this is the rightmost panel. */
|
||||
.tid {
|
||||
width: 360px;
|
||||
flex-shrink: 0;
|
||||
overflow: hidden;
|
||||
border-left: 1px solid var(--hair);
|
||||
background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.24));
|
||||
transition:
|
||||
width 0.24s var(--ease-out),
|
||||
border-left-color 0.24s var(--ease-out);
|
||||
}
|
||||
.tid.closed {
|
||||
width: 0;
|
||||
border-left-color: transparent;
|
||||
}
|
||||
.tid-inner {
|
||||
width: 360px;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: 0;
|
||||
}
|
||||
.tid-head {
|
||||
flex-shrink: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 16px 18px 12px;
|
||||
border-bottom: 1px solid var(--hair);
|
||||
}
|
||||
.tid-head h3 {
|
||||
margin: 0;
|
||||
font-size: 15px;
|
||||
font-weight: 700;
|
||||
color: var(--fg-1);
|
||||
}
|
||||
.tid-scroll {
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
overflow-y: auto;
|
||||
padding: 18px;
|
||||
}
|
||||
.tid-cover {
|
||||
width: 100%;
|
||||
aspect-ratio: 1 / 1;
|
||||
margin-bottom: 16px;
|
||||
border-radius: 12px;
|
||||
overflow: hidden;
|
||||
background: var(--steel-900);
|
||||
box-shadow: var(--shadow-raised, 0 8px 24px rgba(0, 0, 0, 0.4));
|
||||
}
|
||||
.tid-cover img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
display: block;
|
||||
}
|
||||
.tid-title {
|
||||
margin: 0 0 4px;
|
||||
font-size: 19px;
|
||||
font-weight: 700;
|
||||
color: var(--fg-1);
|
||||
line-height: 1.25;
|
||||
}
|
||||
.tid-sub {
|
||||
display: block;
|
||||
font-size: 13px;
|
||||
color: var(--fg-2);
|
||||
text-decoration: none;
|
||||
}
|
||||
.tid-sub:hover {
|
||||
color: var(--lime);
|
||||
text-decoration: underline;
|
||||
}
|
||||
.tid-album {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
margin-top: 3px;
|
||||
color: var(--fg-3);
|
||||
}
|
||||
.tid-actions {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px;
|
||||
margin: 16px 0 4px;
|
||||
}
|
||||
.tid-section {
|
||||
margin-top: 18px;
|
||||
padding-top: 14px;
|
||||
border-top: 1px solid var(--hair);
|
||||
}
|
||||
.tid-section-label {
|
||||
display: block;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.tid-status {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
.tid-error {
|
||||
margin: 8px 0 0;
|
||||
font-size: 12px;
|
||||
color: var(--ember, #e9572b);
|
||||
}
|
||||
.tid-row {
|
||||
display: flex;
|
||||
gap: 12px;
|
||||
padding: 5px 0;
|
||||
font-size: 13px;
|
||||
}
|
||||
.tid-row-k {
|
||||
flex-shrink: 0;
|
||||
width: 96px;
|
||||
color: var(--fg-3);
|
||||
}
|
||||
.tid-row-v {
|
||||
min-width: 0;
|
||||
flex: 1;
|
||||
color: var(--fg-1);
|
||||
text-align: right;
|
||||
word-break: break-word;
|
||||
}
|
||||
.tid-row-v.mono {
|
||||
font-family: var(--font-mono, ui-monospace, monospace);
|
||||
font-size: 11px;
|
||||
color: var(--fg-2);
|
||||
}
|
||||
|
||||
/* On narrower viewports the drawer overlays the content instead of pushing it,
|
||||
so the queue + info drawers don't squeeze the main screen. */
|
||||
@media (max-width: 1180px) {
|
||||
.app-body {
|
||||
position: relative;
|
||||
}
|
||||
.tid {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
width: 360px;
|
||||
z-index: 30;
|
||||
box-shadow: -16px 0 40px rgba(0, 0, 0, 0.5);
|
||||
transition: transform 0.24s var(--ease-out);
|
||||
}
|
||||
.tid.closed {
|
||||
width: 360px;
|
||||
transform: translateX(100%);
|
||||
box-shadow: none;
|
||||
}
|
||||
}
|
||||
|
||||
/* ============================================================
|
||||
PAGE HEADER + SECONDARY NAV (Settings, Admin)
|
||||
============================================================ */
|
||||
|
||||
Reference in New Issue
Block a user