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. -->
{@render kebab()} -