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
+5 -5
View File
@@ -134,18 +134,18 @@ describe('washTone', () => {
describe('shelfTileWidth', () => {
test('a long shelf shows whole tiles that fill its width', () => {
const w = shelfTileWidth(1000, 20, 150, 200, 16);
const w = shelfTileWidth(1000, 20, 150, 16);
const cols = Math.floor((1000 + 16) / (150 + 16));
expect(cols * w + (cols - 1) * 16).toBeLessThanOrEqual(1000);
expect(cols * w + (cols - 1) * 16).toBeGreaterThan(1000 - cols);
});
test('a short shelf grows its tiles up to the max', () => {
expect(shelfTileWidth(1000, 2, 150, 200, 16)).toBe(200);
expect(shelfTileWidth(400, 2, 150, 300, 16)).toBe(192);
test('a short shelf splits the whole width between its items', () => {
expect(shelfTileWidth(1000, 2, 150, 16)).toBe(492);
expect(shelfTileWidth(400, 2, 150, 16)).toBe(192);
});
test('a narrow window still gets one tile at the min', () => {
expect(shelfTileWidth(100, 5, 150, 200, 16)).toBe(150);
expect(shelfTileWidth(100, 5, 150, 16)).toBe(150);
});
});