Desktop: the album year is truncated off the end of long album names in the Albums grid #29

Closed
opened 2026-08-18 05:55:00 +00:00 by logan · 1 comment
Collaborator

Report

On the Albums grid the year is appended to the album name and gets truncated away on longer titles — so browsing by year, I can only see years for albums with short names. Maybe the year needs its own line.

Findings

frontend/src/components/cover-grid/cover-grid.ts — the card is documented as "Two lines: album name (+ year) and artist" (~line 130) and renders .album-name with .album-year inside the same line (~lines 1822-1827). The card's font sizes are set from custom properties (--album-name-font, ~lines 711-731) as the grid scales.

Direction

Move the year out of the truncating span: either onto the artist line (right-aligned, flex-shrink: 0) or its own line. The card height is part of the virtualizer's measurement, so a third line has to be reflected wherever the row height is declared. Interacts with the requested album-art scaling control — at the smallest scale there may be room for no text line at all.

**Report** On the Albums grid the year is appended to the album name and gets truncated away on longer titles — so browsing by year, I can only see years for albums with short names. Maybe the year needs its own line. **Findings** `frontend/src/components/cover-grid/cover-grid.ts` — the card is documented as "Two lines: album name (+ year) and artist" (~line 130) and renders `.album-name` with `.album-year` inside the same line (~lines 1822-1827). The card's font sizes are set from custom properties (`--album-name-font`, ~lines 711-731) as the grid scales. **Direction** Move the year out of the truncating span: either onto the artist line (right-aligned, `flex-shrink: 0`) or its own line. The card height is part of the virtualizer's measurement, so a third line has to be reflected wherever the row height is declared. Interacts with the requested album-art scaling control — at the smallest scale there may be room for no text line at all.
logan self-assigned this 2026-08-18 15:06:33 +00:00
Owner

Shipped in main as 792e872 — fix(ui): stop the album grid eating the year it was sorted by — merged through #83. This was listed in that PR's Closes line but did not close automatically; closing it now.

Shipped in `main` as `792e872` — fix(ui): stop the album grid eating the year it was sorted by — merged through #83. This was listed in that PR's `Closes` line but did not close automatically; closing it now.
yonlu closed this issue 2026-08-18 19:56:53 +00:00
Sign in to join this conversation.
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: yonlu/yellowjacket#29