fix(web): genre fans grow with their band, and short shelves fill the row
release / go (push) Successful in 1m51s
release / web (push) Successful in 1m31s
release / govulncheck (push) Successful in 20s
release / integration (push) Successful in 4m22s
release / android (push) Successful in 4m58s
release / Build signed APK (push) Successful in 5m6s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 27s
release / Verify release artifacts (tag releases only) (push) Skipped

A genre band's fan of covers is sized to the band's height (74% of it),
larger than before, and may run under the genre's name again; the name
sits on a dark translucent backing that keeps it readable over any cover.

A shelf with fewer items than fit across the page now splits the whole
width between them, so no shelf ends partway across.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-23 18:09:52 -05:00
co-authored by Claude Opus 5.5
parent ca70cf7678
commit c4ac14d77a
5 changed files with 45 additions and 34 deletions
@@ -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.