fix(web-player): tune the card sizes so the grids scale

The recently played rows stretched to 378px on a 1920 screen and the
discover wall broke into eight narrow columns. Cards now stay in a
narrow band: 295-349px for the rows, 203-218px everywhere else.
This commit is contained in:
2026-07-21 19:16:37 +02:00
parent 699b36c966
commit 0b149f052e
2 changed files with 5 additions and 5 deletions
@@ -11,7 +11,7 @@
let {
as = 'div',
min = '180px',
min = '200px',
minMobile = '150px',
class: klass = '',
children
+4 -4
View File
@@ -186,8 +186,8 @@
{#if recentlyPlayed.length > 0}
<section class="page-x pt-5 pb-3 sm:pt-6">
<SectionHeading title="Escuchado recientemente" />
<MediaGrid min="300px" minMobile="220px">
<SectionHeading title="Volver a escuchar" />
<MediaGrid min="280px" minMobile="220px">
{#each recentlyPlayed as track, i (track.id)}
<button
type="button"
@@ -232,7 +232,7 @@
{#if mixes.length > 0}
<div class="min-w-0">
<SectionHeading title="Hechas para ti" />
<MediaGrid min="140px" minMobile="130px">
<MediaGrid min="150px" minMobile="130px">
{#each mixes as mix, i (mix.id)}
<MixCard {mix} index={i} />
{/each}
@@ -251,7 +251,7 @@
{/if}
{/snippet}
</SectionHeading>
<MediaGrid min="140px" minMobile="130px">
<MediaGrid min="150px" minMobile="130px">
{#each playlists as playlist, i (playlist.id)}
<PlaylistCard
id={playlist.id}