Skip to content

fix(web): keep Now Playing tags whole at larger text sizes - #4874

Merged
Quick104 merged 2 commits into
mainfrom
fix/now-playing-tag-row-text-scale
Nov 21, 2026
Merged

Quick104 merged 2 commits into
mainfrom
fix/now-playing-tag-row-text-scale

Conversation

@Quick104

@Quick104 Quick104 commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

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 own leading-[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

  • I rendered the real widget in headless Chromium from a temporary dev-only harness page with stubbed sessions; the page isn't committed. I measured the tag row height against each first-line pill at a 12px browser font, at default, Large, and Extra large text size, and at a 24px browser font, on main and 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.
    • This branch: the row matches the pill height at every size (14, 18, 20, 22, 26px) and nothing on the first line is clipped. Pills that wrap to a second line stay hidden.
  • At default size, the before and after captures are pixel-identical.
  • ESLint and Prettier pass on the changed file. Web CI passes.
  • Not checked on a live server. The proof is the harness measurements and captures.

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

  • I read and can explain the complete diff.
  • This pull request addresses one concern.
  • Each test this pull request adds meets "Decide what to test" in CONTRIBUTING.md.
  • The Evidence section shows every change a user can see, or how I checked a change nobody sees.

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.

Member Round 1 Round 2
Sol (gpt-6.2-sol, high) 8/10 8/10

Visual review: 1 round, captures from 1c2f64d. The 12px case added after round 1 was checked by measurement.

Member Round 1
Opus (claude-opus-5-5) better at Large, Extra large, and a 24px browser font; same at default

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

  • Harness: Claude Code in T3 Code
  • Tool(s): Claude Code; Codex for the adversarial review; Playwright (headless Chromium) for captures
  • Model(s): claude-opus-5-5 (implementation, visual review), gpt-6.2-sol (adversarial review)
  • Involvement: Fully AI-generated; no human has reviewed it yet
  • Adversarial review: I reviewed the one-class diff inline and skipped the plan round because the fix is mechanical. See Council review above.

🤖 Generated with Claude Code

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]>
@silo-triage silo-triage Bot added the size/S 0–49 added + deleted lines (all files); change volume, not priority. label Nov 21, 2026
@coderabbitai

coderabbitai Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

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.

Check out review usage here.

View limit details

Limit details: You’ve used all 4 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 5a8dfa4c-1c20-4207-a153-b9426c63913b
Commits

Reviewing files that changed from the base of the PR and between 5a3156b and c128750.

Files selected for processing: 1

  • web/src/components/admin/dashboard/widgets/NowPlayingWidget.tsx
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-21T04:34:15.840224Z 1c2f64d PR opened
🔒 Security Review ✅ Completed 2026-11-21T04:41:07.644734Z c128750 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

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

silo-kody Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

@silo-triage silo-triage Bot added bug Something isn't working impact: polish Annoyance, cosmetic, or nice-to-have priority: P2 Limited scope, workaround exists, or polish triaged High-confidence review completed; does not mean fixed, validated, or accepted for release. labels Nov 21, 2026
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

silo-kody Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

@Quick104
Quick104 merged commit 1b60d5b into main Nov 21, 2026
18 checks passed
@Quick104
Quick104 deleted the fix/now-playing-tag-row-text-scale branch November 21, 2026 05:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working impact: polish Annoyance, cosmetic, or nice-to-have priority: P2 Limited scope, workaround exists, or polish size/S 0–49 added + deleted lines (all files); change volume, not priority. triaged High-confidence review completed; does not mean fixed, validated, or accepted for release.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant