Fix album track rows collapsing to 3 lines on mobile #20
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/album-track-row-mobile-width"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
trackList.css's@media (max-width: 600px)forced.trackRowdown to a 2-column grid and pinned both.trackDurationand the icon button to that same second column — auto-placement then stacked them into their own rows under the track name (3 rows total) instead of staying on one line..trackRow's fixed overhead (28px index + gaps + padding + anauto-sized duration/button) comes to roughly 155-165px, and even a 320px-wide phone leaves comfortably more than that for the flexible name column —.trackName's existingtext-overflow: ellipsisalready handles anything longer.Test plan
npm run typecheck(client) — cleannpm run build(client) — clean.trackRows (short and deliberately overlong names) loaded into<iframe>s at 320px and 375px (this sandbox'sresize_windowemulation is unreliable). At both widths every row's index/name/duration/button sat on one line (genuinely overlapping vertical ranges, left to right in order), and the long names were confirmed actually truncated (scrollWidth > clientWidth) rather than just happening to fit.🤖 Generated with Claude Code