diff --git a/web/src/lib/components/HorizontalScrollRow.svelte b/web/src/lib/components/HorizontalScrollRow.svelte index d5a3dc1d..d66bda33 100644 --- a/web/src/lib/components/HorizontalScrollRow.svelte +++ b/web/src/lib/components/HorizontalScrollRow.svelte @@ -27,11 +27,12 @@ each · refreshed today"), shown beside the title so the items need not repeat it. */ meta?: string; - /** Size items to the row instead of a fixed width: the row shows a whole - number of items that fill its width, each at least `min` px wide (and, - when there are fewer items than fit, at most `max` px). The width is - set as --tile-w on the track; an item wrapper uses it as its width. */ - fit?: { min: number; max: number }; + /** Size items to the row instead of a fixed width: the items always fill + the row's width, a whole number of them at a time, each at least `min` + px wide; a row of fewer items than fit splits the width between them. + The width is set as --tile-w on the track; an item wrapper uses it as + its width. */ + fit?: { min: number }; /** Accessible label for the section as a whole. */ ariaLabel?: string; } = $props(); @@ -81,7 +82,7 @@ const BLEED = 16; const itemCount = $derived(Math.max(0, ...rows.map((r) => r.length))); const tileWidth = $derived( - fit ? shelfTileWidth(clientWidth - BLEED, itemCount, fit.min, fit.max, GAP) : 0 + fit ? shelfTileWidth(clientWidth - BLEED, itemCount, fit.min, GAP) : 0 ); // clientWidth follows the window, not just scrolling, so tiles resize live. diff --git a/web/src/lib/components/PlaylistCard.svelte b/web/src/lib/components/PlaylistCard.svelte index 5d7b68da..144215b3 100644 --- a/web/src/lib/components/PlaylistCard.svelte +++ b/web/src/lib/components/PlaylistCard.svelte @@ -282,7 +282,7 @@ {@render kebab()}