Repository navigation
fix(web): keep Now Playing tags whole at larger text sizes - #4874
Conversation
The tag row's one-line cap was 18px, but the pills' line height and padding are rem, so at Large or Extra large text, or a larger browser font, the pills outgrew the cap and lost their bottom edge. Size the cap in rem (line height + padding) plus the 2px border so it matches the pill height at every text size. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Next included review available in 1 minute. View limit details
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
The profile pill sets its own 1.1 line height on 9px text. Below a browser font of about 13px that line is taller than the row's 0.75rem, so the pill outgrew the rem cap and lost its bottom edge. Give the row's direct children the row's line height so the cap matches every pill. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
Problem
Related issue: N/A
Validation tasks: none
Other clients: N/A (web admin dashboard only; no client has this widget)
On the admin dashboard, each Now Playing session card shows a row of tags (play method, Jellyfin pill, client label, route, profile) capped at one line. With Settings → Accessibility → Text size set to Large or Extra large, or with a larger browser default font, the bottom edge of every tag gets cut off. The cap is a fixed 18px. The pills' line height and padding are in rem, so they grow with text size while the cap stays at 18px.
Approach
Write the cap in rem:
calc(1rem + 2px). That is the row's 0.75rem line height, the pills' 0.25rem of vertical padding, and their 2px of border. At the default 16px root it's still 18px. The row also gives every pill its own 0.75rem line height ([&>*]:leading-3). Without that, the profile pill's ownleading-[1.1]on 9px text is taller than 0.75rem below a browser font of about 13px and would outgrow the cap. With both changes the cap equals every pill's height at any text size, so the first line shows whole and tags that wrap stay hidden.The pills'
text-[9px]font size doesn't change here; #4861 converts it to rem. The two changes are independent, but they touch neighbouring lines, so whichever merges second may need a rebase.Validation
mainand on this branch.main: the row stays 18px while the pills are 20, 22, and 26px at Large, Extra large, and 24px, so 2, 4, and 8px get clipped.Evidence: https://evidence.siloserver.org/r/silo-server/now-playing-tag-row-text-scale/
Risks
None identified. The card gets taller only when the text is larger than default, and only by the amount that was being clipped.
Checklist
Council review
This ran as a follow-up from the review of #4861, so each round had one member, at
high. Rounds: 2, last reviewed c128750.Visual review: 1 round, captures from 1c2f64d. The 12px case added after round 1 was checked by measurement.
Fixed: at a 12px browser font the profile pill's own line height outgrew the cap (round 1); every pill now takes the row's line height. Answered: if the method label wrapped onto two lines it would be clipped. That would be an older problem, it wasn't reproduced, and it needs a card far narrower than the widget uses, so this PR leaves it alone.
AI Disclosure
🤖 Generated with Claude Code