From 46d97e51f7bfbae3d3f48dd2820263a302e93f66 Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Tue, 24 Nov 2026 07:15:12 -0500 Subject: [PATCH] fix(web): a genre band's fan spans 80% of its width, leftmost cover on top Co-Authored-By: Claude Opus 5.5 --- web/src/lib/components/PlaylistCard.svelte | 23 ++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/web/src/lib/components/PlaylistCard.svelte b/web/src/lib/components/PlaylistCard.svelte index 144215b3..4ae29865 100644 --- a/web/src/lib/components/PlaylistCard.svelte +++ b/web/src/lib/components/PlaylistCard.svelte @@ -48,6 +48,8 @@ // lead: the card's picture and the source of its colour wash. const coverUrls = $derived(covers.map((id) => coverUrl(id))); const lead = $derived(coverUrls[0] ?? playlist.cover_url ?? ''); + // A band's fan: its own covers, or its lead cover alone when it has none. + const fanUrls = $derived(coverUrls.length > 0 ? coverUrls : lead ? [lead] : []); // The wash behind a wide card or band is the lead cover's main colour, // toned down (washTone) and darkened so light text reads on it in either @@ -277,7 +279,7 @@ {:else if shape === 'band'} + type, and a fan of three covers across most of its width. -->