From c0d5d6aebfa56f965064b927385682289634bd5b Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Mon, 1 Jun 2026 20:55:54 -0400 Subject: [PATCH] feat(web): Most Played horizontal compact tiles + revert Rediscover MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Operator clarification: the 'compact like the app' request was for Most Played, not Rediscover. - CompactTrackCard rewritten as a horizontal Row: cover thumbnail left, title + artist column right. w-72 (~288 px) matches the Android CompactTrackTile's 176 dp visual weight. Most Played's existing chunked-rows-in-shared-scroller layout now reads like the Android multi-row LazyHorizontalGrid. - Rediscover steps back from the compact w-32/w-28 widths to w-40/ w-36 (the pre-PR-#66 sizes) — the size hierarchy still works with the regular AlbumCard treatment. --- .../lib/components/CompactTrackCard.svelte | 20 +++++++++++++------ web/src/routes/+page.svelte | 12 +++++------ 2 files changed, 19 insertions(+), 13 deletions(-) diff --git a/web/src/lib/components/CompactTrackCard.svelte b/web/src/lib/components/CompactTrackCard.svelte index ed526455..2588bb7a 100644 --- a/web/src/lib/components/CompactTrackCard.svelte +++ b/web/src/lib/components/CompactTrackCard.svelte @@ -5,6 +5,11 @@ import TrackMenu from './TrackMenu.svelte'; import CardActionCluster from './CardActionCluster.svelte'; + // Horizontal compact track row — cover thumb on the left, title + + // artist on the right. Mirrors Android's CompactTrackTile so the + // Most Played section reads the same way across platforms (three + // narrow rows that scroll together). + let { track, sectionTracks, @@ -32,24 +37,27 @@ } -
+
{#snippet item(album: import('$lib/api/types').AlbumRef)} - -
+ +
{/snippet} {/if} @@ -214,7 +212,7 @@ ariaLabel="Rediscover artists" > {#snippet item(artist: import('$lib/api/types').ArtistRef)} -
+
{/snippet} {/if}