fix(queue): resolve real track covers in queue panel
Docker Build & Publish / build (push) Has been cancelled
Docker Build & Publish / push (push) Has been cancelled
Docker Build & Publish / Prune old image versions (push) Has been cancelled

Queue rows passed albumArtUrl straight to ArtTile, but for tracks that
field is usually empty — the real cover is served per-track from
/tracks/{id}/cover. Apply the same resolution PersistentPlayer uses
(getCoverUrl ?? getTrackCoverUrl) for both the now-playing tile and the
up-next rows.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Senko-san
2026-06-13 17:06:21 +03:00
parent d1b2b40ffd
commit df2531171e
5 changed files with 47 additions and 9 deletions
+2
View File
@@ -9,6 +9,7 @@ export interface ResolvedQueueEntry {
albumTitle: string;
durationMs: number;
hasCover: boolean;
albumArtUrl?: string;
}
/**
@@ -33,5 +34,6 @@ export function useResolvedQueueEntry(
albumTitle: data?.albumTitle ?? entry.albumTitle,
durationMs: data?.durationMs ?? entry.durationMs,
hasCover: data?.hasCover ?? false,
albumArtUrl: data?.albumArtUrl ?? entry.albumArtUrl,
};
}