Desktop: seek bar shifts width as the elapsed/remaining digits change #13

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

Report

The seek bar changes size slightly as the numbers in the elapsed/remaining clocks change. Use tabular figures or reserve the space.

Findings

frontend/src/components/audio-player/seekbar/ — the clocks are <small data-testid="elapsed-time"> and the .time-toggle button (~lines 224-248), rendered from formatSeconds. Neither the elements nor their container set font-variant-numeric: tabular-nums or a min-width, so a proportional font reflows the bar every time a digit changes.

Direction

font-variant-numeric: tabular-nums on both clocks, plus a min-width sized from the track's own duration string (a track over an hour is h:mm:ss and legitimately wider). Do not switch the whole app to a monospaced font for this.

**Report** The seek bar changes size slightly as the numbers in the elapsed/remaining clocks change. Use tabular figures or reserve the space. **Findings** `frontend/src/components/audio-player/seekbar/` — the clocks are `<small data-testid="elapsed-time">` and the `.time-toggle` button (~lines 224-248), rendered from `formatSeconds`. Neither the elements nor their container set `font-variant-numeric: tabular-nums` or a min-width, so a proportional font reflows the bar every time a digit changes. **Direction** `font-variant-numeric: tabular-nums` on both clocks, plus a `min-width` sized from the track's own duration string (a track over an hour is `h:mm:ss` and legitimately wider). Do not switch the whole app to a monospaced font for this.
logan added the Area/PlayerKind/BugPlatform/Desktop
Priority
Low
4
Reviewed
Confirmed
1
labels 2026-08-18 14:36:05 +00:00
logan self-assigned this 2026-08-18 15:03:15 +00:00
Owner

Shipped in main as d6b48fb — fix(player): stop the seek bar resizing as its clocks count — merged through #83. This was listed in that PR's Closes line but did not close automatically; closing it now.

Shipped in `main` as `d6b48fb` — fix(player): stop the seek bar resizing as its clocks count — 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:51 +00:00
Sign in to join this conversation.
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: yonlu/yellowjacket#13