Skip to content

fix(web): size pixel text in rem so it grows with Text Size - #4861

Merged
Quick104 merged 17 commits into
mainfrom
fix/text-scale-arbitrary-sizes
Nov 23, 2026
Merged

Quick104 merged 17 commits into
mainfrom
fix/text-scale-arbitrary-sizes

Conversation

@Quick104

@Quick104 Quick104 commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Related issue: N/A
Validation tasks: none (no passed Web case is affected: none tests Text size, and Default renders unchanged)

Other clients: N/A (web-only: Apple, Android and Roku size text from the platform's own text-size setting, not this web setting)

In the web app, Settings → Accessibility → Text size (Large, Extra large) left a lot of small text at its default size while the text around it grew. Counts in filter rails and pills, list headers, device stats, tags and badges stayed small. Anything sized with an arbitrary pixel class such as text-[12.5px], text-[11.5px] or text-[10.5px] was affected: about 150 places across admin and settings pages.

This change sizes all of that text in rem, so it grows with the setting like the rest of the app.

Text Size works by raising the root font size. Pixel sizes ignore the root, so app.css carried a list of !important overrides that rescaled 13 specific pixel sizes. The list missed the sizes added since (12.5, 13.5, 14.5, 11.5, 10.5, 9.5, 8.5, 16, 18, 22 and 26px). Because of !important, an override also beat the responsive class beside it. So text-[12px] sm:text-sm in the Calendar showed the phone size on desktop, and an input passing text-[13px] lost its own md:text-sm.

Approach

  • Every text-[Npx] class in web/src is now the same size in rem (text-[12.5px] → text-[0.78125rem]). The !important override list in app.css is gone. At the default size and a 16px browser font, every size renders exactly as before.
  • A new lint rule, silo/text-size-in-rem, flags pixel font sizes and fixes them with eslint --fix. It made every conversion in this PR, so a branch that adds a text-[Npx] class can run the same command after rebasing. It shares its class-token parsing with silo/no-physical-direction (new eslint-rules/class-tokens.js).
  • The policy editor's CodeMirror text (13px) moves to rem as well. The two 22px collection tags now take a minimum height instead of a fixed one, so their text can't spill out. On Admin → Devices, a saved-view label wraps (icon and count stay on its first line) instead of cutting off now that its count grows, and the search placeholder ends with an ellipsis when it doesn't fit. The library A–Z letters are capped at 80% of their row height, so a large browser font plus Extra large can't push them into each other. The New collection cards' decorative picture keeps its sample rows in pixels inside its fixed-height frame. Chips and badges that held text in a fixed pixel height use the same height in rem.
  • CI's lint cache key now includes web/eslint-rules/**, so changing a repository rule re-lints every file.

Text that now uses rem also follows the browser's default font size, as browse and detail text already does since #1806. Large and Extra large now multiply this text by 1.125 and 1.25, the root's own factors, instead of the old override factors of 1.12 and 1.24.

Converting to rem is the simplest fix that removes the !important conflicts. Extending the override list would have kept the responsive conflicts and needed a lint rule that parses app.css, which CI's lint cache can't track.

Validation

  • Web lint, typecheck, Prettier check, and the web test suite (311 files) pass on the branch. On the latest head, three reader and player-engine tests timed out once under heavy host load and pass on rerun.

  • The new rule's tests cover half-pixel sizes, variants, the important flag, a line-height modifier, template segments, and pixel values in other utilities that it leaves alone. Run on unfixed main, the rule reports 900 string literals.

  • A script compared each converted file with main. The only differences are the px→rem class conversions and Prettier rewrapping.

  • I rendered the real Admin Devices page, the Calendar week navigator, the library pill switcher and two dashboard charts in headless Chromium at Default, Large and Extra large, at 1440, 820 and 390px widths, before and after. At Default, sizes are unchanged. Devices and dashboard captures match pixel for pixel, except the search placeholder, which now ends in an ellipsis at phone width, and one anti-aliased icon pixel. The pill counts differ only in glyph anti-aliasing. At Extra large, text that used to stay at 12.5px, 11.5px or 10.5px now grows to 15.6px, 14.4px and 13.1px. The week range label (text-[12px] sm:text-sm) shows its desktop size, 17.5px rather than the 14.9px phone size. Only the 390px dashboard test page scrolls sideways at Large and Extra large, and it did the same before this change.

  • Maintainer review (2e163d9): merged current main (26 class-string conflicts, resolved by taking main's text, rerunning the autofix and reapplying the hand edits; LibraryActivityPanel.tsx, new on main, got the same conversion). A diff audit confirms every changed web/src file equals main's copy plus the autofix and Prettier, apart from the 14 files with hand edits. Lint, Prettier, typecheck and pnpm run build pass. The full web suite passed apart from 7 files that timed out under host load and pass on rerun. On a sandbox, the A–Z rail and the New collection picture were measured and captured at Default, Large and Extra large before and after the review's fixes, and Scan Activity at Default and Extra large during a scan. A second merge of main (39ad0cd) resolved three more class-string conflicts the same way; lint, the format check, typecheck and the build pass on it. A third merge (dc479bc) applied cleanly and added no pixel sizes; lint, the format check, typecheck and the build pass on it too.

Evidence: https://evidence.siloserver.org/r/silo-server/text-scale-arbitrary-sizes/

Risks

  • About 250 files change class strings. Open web pull requests that touch the same lines will conflict; resolving with the incoming class plus eslint --fix is enough.
  • At Large and Extra large, text that never scaled now does, so some dense rows grow taller or wrap. I checked Admin Devices, the Calendar navigator, the pill switcher and dashboard charts; other screens weren't captured.

Follow-ups

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

Maintainer review rounds (this review): round 1 reviewed 3cf3825, round 2 reviewed f5f077e (the final head 2e163d9 adds only the Tailwind source exclusion that Opus and Gemini recommended in round 2).

Member Review round 1 Review round 2
Sol (gpt-6.2-sol, xhigh) 8/10 8.5/10
Opus (claude-opus-5-5, high) 8.5/10 9/10
Gemini (gemini-4-neon, xhigh) 8.5/10 9/10

Fixed in this review: A–Z letters shrank below Default at Large and Extra large on 600–760px tall windows (cap is now the full row height, less the rail border); the synced New collection picture cut off its poster row; the rule missed [font-size:Npx] and .Npx, and its case-insensitive match caught text-[LENGTH:…]; Tailwind compiled the rule tests' class names into the app CSS; the lint exception's stated reason. Answered: rail letters still shrink at Extra large while impersonating on a short window, which is the rail geometry #4898 covers; a quoted selector value inside an arbitrary variant gets rewritten (contrived, same tokenizer as before, no caller); pixel sizes in style objects, calc() and leading-[Npx] aren't linted (none exist; possible follow-ups); h-7.5 on a Starter packs select is overridden, as h-[30px] was before.

Earlier rounds (author's):

Rounds: 2. Round 1 reviewed 4224f65, round 2 reviewed 7653561.

Member Plan round Background round 1 Background round 2
Sol (gpt-6.2-sol, xhigh) better approach: scale in the utility, drop the !important block 7/10 7/10
Opus (claude-opus-5-5, high) plan near-minimal 8.5/10, no findings 8.5/10, one nit
Gemini (gemini-4-neon, xhigh) premises held, plus 11 <Input> sites with the same conflict 8/10 unavailable (provider quota)

Visual review: 2 rounds, final captures from the branch head before the last rebase (the rebase added no changes to these screens)

Member Round 1 Round 2
Sol better, 8/10 better, 7.5/10
Opus better, 7/10 better, 7.5/10
Gemini better, 7/10 better, 7/10

Fixed: the plan moved from extending the override list to rem; a saved-view label that newly truncated now wraps; saved-view counts kept their Default position; the search box keeps its place and ends a long placeholder with an ellipsis. Background review (Sol's findings were returned to this run rather than posted): A–Z letters overlapping at a 24px browser font plus Extra large, fixed; New collection picture clipping its sample text, fixed by keeping the picture in pixels; text-[length:Npx] not caught by the rule, fixed; Now Playing tag row clipping at Large, which predates this change, is fixed in #4874; the rule rewriting a non-class string such as name="text-[13px]", answered: no such string exists, and the rule scans literals the same way no-physical-direction does. Gemini's round 1 (posted on the PR): the rule missed text-[length:Npx] and nested variants, fixed; it matched text glued to other characters and left a pixel line height after the size, fixed; seven chips and badges kept fixed pixel heights around text that now grows, moved to the same heights in rem; the New collection picture, fixed as above. Round 2: utilities behind a quoted selector variant, already fixed by the bracket-depth split, now covered by a test; an upper-case PX unit, fixed; a short window with a large browser font makes the A–Z rail's rows too small to read (on main the letters overlapped there), #4898; the rail's row variable mirrors the rail height (Opus nit), kept next to it in the same class list. Answered: the Calendar week range truncating on phones at Large and Extra large, and the dashboard cards overflowing a 390px test page, look the same before and after; the week range is #4862.

AI Disclosure

  • Harness: Claude Code in T3 Code
  • Tool(s): Claude Code; T3 Code delegate tasks to Codex and Antigravity for review
  • Model(s): claude-opus-5-5 (wrote the code); review by gpt-6.2-sol, claude-opus-5-5, gemini-4-neon, claude-sonnet-5-5
  • Involvement: Fully AI-generated; not yet verified by a person
  • Adversarial review: a plan review by three models (Sol, Opus, Gemini) changed the approach from extending the override list to converting to rem. A multi-agent code review at high effort (claude-opus-5-5 and claude-sonnet-5-5 finders, a validation check against the 1.0 board) led to the tag, policy editor, CI cache and fallback-factor fixes. Two rounds of visual review led to the Devices fixes. Background adversarial review: see Council review.

🤖 Generated with Claude Code

Note

Convert pixel text sizes to rem across web so they scale with Text Size setting

  • Replaces pixel-based Tailwind text-size classes (e.g. text-[11px]) with equivalent rem values across most web components, so text scales with the root font size set by the Text Size accessibility setting. Nominal sizes are unchanged at a 16px root.
  • Adds an ESLint rule text-size-in-rem (text-size-in-rem.js) that reports pixel font-size class tokens and autofixes them to rem. Shared token parsing moves into class-tokens.js, also used by no-physical-direction.
  • Enables the rule as an error in eslint.config.js, and adjusts text-scale factors in app.css from 1.12/1.24 to 1.125/1.25, removing overrides for now-converted pixel classes.
  • Minor related tweaks: SavedViewRow labels wrap instead of truncating, some fixed-height badges become min-height, and CI cache keys now include web/eslint-rules/**.
  • Risk: text now renders larger/smaller than before whenever the user's root font size differs from 16px; the NewCollectionPicker stage illustration keeps pixel sizing under an ESLint suppression.

Macroscope summarized dc479bc.

Text written with an arbitrary pixel size such as text-[12.5px] stayed the
same size at Large and Extra large while the text around it grew. A list of
!important overrides in app.css scaled only thirteen of the sizes the app
uses, and where a pixel size had a responsive variant, the override beat it
and showed the phone size on wider screens.

Size those classes in rem instead (text-[12.5px] becomes text-[0.78125rem]),
so they follow the root font size like the rest of the app, and remove the
overrides. A new lint rule, silo/text-size-in-rem, flags pixel font sizes and
fixes them with eslint --fix. The two class-rewriting rules now share their
token parsing in eslint-rules/class-tokens.js, and CI's lint cache key
includes the repository rules.

The policy editor's text moves to rem too, the 22px collection tags take a
minimum height so their text can't spill out, and the text-scale fallback
factor matches the root sizes. On Admin > Devices, a saved-view label wraps
instead of cutting off now that its count grows, and the search placeholder
ends with an ellipsis when it doesn't fit.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@silo-triage silo-triage Bot added the size/XXL 1000–2999 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

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The web application adds shared ESLint helpers and a tested rule that converts pixel-based text sizes to rem values. Text-size declarations change across the application. Text-scale factors and catalog letter sizing also change.

Changes: Web text sizing

Layer / File(s) Summary
Class-token parsing and text-size linting
.github/workflows/trusted-linux-ci.yml, web/eslint-rules/*, web/eslint.config.js
Shared token helpers support the physical-direction rule. A tested rule converts pixel font-size classes and arbitrary font-size properties to rem. CI cache keys include the rule files.
Shared UI text sizing
web/src/app.css, web/src/components/*, web/src/components/admin/*, web/src/components/calm/*, web/src/components/catalog/*
Text-size declarations change to rem-based values. Text-scale factors change, fixed-pixel scaling overrides are removed, and catalog letter sizes are capped by rail height.
Collections and home-row text sizing
web/src/components/collections/*, web/src/components/homeRows/*
Text-size declarations change across collection views, editors, fields, and home-row interfaces. The collection picker scopes a lint exception to fixed-size miniature artwork.
Admin interface text sizing
web/src/components/admin/*, web/src/pages/Admin*.tsx, web/src/pages/admin-*/*
Text sizes change across admin components and pages, including dashboard widgets, backup and restore views, download preparation, request tools, and autoscan. Saved device-view labels wrap instead of truncate.
Settings and playback text sizing
web/src/pages/settings/*, web/src/pages/watchtogether/*, web/src/pages/audiobooks/*, web/src/player/*, web/src/playback/*
Text sizes change across settings, setup, audiobook, watch-together, playback, and subtitle interfaces.

Estimated code review effort: 4 (Complex) | ~45 minutes

Change: Bug fix

Possibly related issues

Merge Risk: Low · up to dc479

This change makes text sizes follow the root font size, so the Text Size setting now scales text that was previously fixed. Default-size rendering is expected to look the same. Remaining risks are small: the new lint autofix could rewrite a pixel size inside a quoted selector value or a prose string, and the catalog letter rail could shrink its letters at larger text settings. These are low-impact and have workarounds. Owner awareness is enough, with follow-ups for the lint rule scope and the rail sizing.

Security architecture risk: Minimal · up to 39ad0

The inspected changes adjust text scaling and add lint enforcement. No introduced or worsened risk to security, failure containment, rollback, or ownership guarantees was established.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "fix(web): size pixel text in rem so it grows with Text Size" matches the main change: converting pixel-based text-size classes across web/src to rem so they scale with the Text Size setting…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description check Passed The description states the problem (small text in the web app did not grow with the Text Size setting), the approach (converting pixel text-size classes to rem, a new autofixing lint rule `silo/text-s…
Full details: Title check

Explanation

The title "fix(web): size pixel text in rem so it grows with Text Size" matches the main change: converting pixel-based text-size classes across web/src to rem so they scale with the Text Size setting. It also reflects the removal of the app.css !important overrides. It omits the new lint rule and CI cache change, which is acceptable for a title.

Full details: Description check

Explanation

The description states the problem (small text in the web app did not grow with the Text Size setting), the approach (converting pixel text-size classes to rem, a new autofixing lint rule silo/text-size-in-rem, and removing the !important override list in app.css), validation steps, and risks. It matches the changeset, which converts pixel font sizes across web/src and adds the rule and class-token helpers.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

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: cfa8c272-60ad-4903-88d1-3a1d2f68115e
Commits

Reviewing files that changed from the base of the PR and between 39ad0cd and dc479bc.

Files selected for processing: 3

  • web/src/components/LibraryAccessSelector.tsx
  • web/src/components/admin/dashboard/DashboardGrid.tsx
  • web/src/playback/WatchPlaybackChrome.tsx
Files skipped from review as they are similar to previous changes: 3

  • web/src/components/LibraryAccessSelector.tsx
  • web/src/components/admin/dashboard/DashboardGrid.tsx
  • web/src/playback/WatchPlaybackChrome.tsx

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 1 remain after this review.

@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-23T02:36:09.181448Z dc479bc New commits
🔒 Security Review ✅ Completed 2026-11-23T02:38:39.803372Z dc479bc 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 labels Nov 21, 2026
)}
</div>
<div className="text-muted-foreground hidden truncate text-[10px] sm:block">
<div className="text-muted-foreground hidden truncate text-[0.625rem] sm:block">

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kody code-review Kody Rules medium

Truncated email addresses inherit the interface direction

A mixed-direction email address can lose its logical start when truncated at narrow widths. Apply Unicode bidi direction resolution, including strong RTL digits and weak numeric prefixes, and test mixed local parts and domains in both interface directions.

Also found in:

  • web/src/components/admin/dashboard/widgets/ScanActivityWidget.tsx:88-88
  • web/src/components/admin/deviceOverrides.tsx:693-693
  • web/src/components/settings/DeviceList.tsx:380-380

Kody rule violation: Preserve the logical start of bidirectional truncated text

Prompt for LLM
File web/src/components/admin/dashboard/widgets/UsersWidget.tsx, line 113:

Truncated email addresses inherit the interface direction

The truncated email inherits the interface direction, so a mixed-direction address can lose its logical start at narrow widths. Resolve the mailbox direction using Unicode bidi behavior, including strong RTL digits and weak numeric prefixes, and apply it to this element. Cover mixed local parts and domains in both interface directions.

**Also found in:**
- `web/src/components/admin/dashboard/widgets/ScanActivityWidget.tsx:88-88`
- `web/src/components/admin/deviceOverrides.tsx:693-693`
- `web/src/components/settings/DeviceList.tsx:380-380`

Kody rule violation: [Preserve the logical start of bidirectional truncated text](https://kodus.siloserver.org/settings/code-review/1247142351/kody-rules/543088f5-5d79-48a9-804f-7c9ce6776d3a?teamId=ba9922fc-c0ea-4cf8-87bb-9d4f42ffc73e)

Talk to Kody by mentioning @kody

Was this suggestion helpful? React with 👍 or 👎 to help Kody learn from this interaction.

​

​

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR changes only the font-size class on these lines (text-[Npx] to the same size in rem). Truncation and text direction behave exactly as on main, so a bidi change for these emails is out of scope here.

🤖 Claude Code (claude-opus-5-5)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed. The direction and truncation behavior was already present on main; this PR changes the font-size unit, not the bidi handling. The suggestion is out of scope for this PR, though it could be considered separately.

<div className="space-y-1">
<div className="truncate text-sm font-medium">{row.label}</div>
<code className="text-muted-foreground block truncate text-[11px]">
<code className="text-muted-foreground block truncate text-[0.6875rem]">

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kody code-review Kody Rules medium

Mixed-direction root paths can display delimiters out of order

The plain code element can visually reorder mixed-direction paths, especially in RTL interfaces. Use a path-aware bidirectional component that isolates directional components while preserving separators and filename punctuation.

Kody rule violation: Isolate bidirectional URL components without reordering delimiters

Prompt for LLM
File web/src/components/admin/libraries/AmbiguousRootsSection.tsx, line 223:

Mixed-direction root paths can display delimiters out of order

Render the root path with a path-aware bidirectional component that isolates directional components while preserving separators and filename punctuation. The plain code element can visually reorder mixed-direction paths, particularly in RTL interfaces.

Kody rule violation: [Isolate bidirectional URL components without reordering delimiters](https://kodus.siloserver.org/settings/code-review/1247142351/kody-rules/045e17ea-e5d3-40d1-8e9f-044195c20418?teamId=ba9922fc-c0ea-4cf8-87bb-9d4f42ffc73e)

Talk to Kody by mentioning @kody

Was this suggestion helpful? React with 👍 or 👎 to help Kody learn from this interaction.

​

​

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR changes only the font-size class on this line. How the path renders in a right-to-left interface is unchanged from main, so isolating its components is out of scope here.

🤖 Claude Code (claude-opus-5-5)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed. This change only converts the existing font size from pixels to rem; it does not change the path’s bidirectional rendering. The suggestion is out of scope for this PR, though the underlying RTL behavior could be addressed separately.

<span
className={cn(
"text-[9px] tracking-[0.12em] uppercase opacity-70",
"text-[0.5625rem] tracking-[0.12em] uppercase opacity-70",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kody code-review Kody Rules high

Score label has insufficient contrast on the tinted panel

In the light theme, opacity-70 further reduces the already insufficient contrast of amber and emerald labels. Use a color that reaches 4.5:1 contrast over the panel and its hover state, and verify both themes.

Also found in:

  • web/src/components/JellyfinSessionPill.tsx:17-17
  • web/src/player/components/SubtitleSearchModal.tsx:355-355
  • web/src/components/collections/StarterPacksDialog.tsx:366-366
  • web/src/player/components/SubtitleTranslateModal.tsx:350-350
  • web/src/player/components/MarkerEditPanel.tsx:89-89
  • web/src/player/components/MarkerEditPanel.tsx:199-199
  • web/src/player/components/WatchTogetherPanel.tsx:76-76
  • web/src/components/ImageSelectorTab.tsx:193-193
  • web/src/player/components/WatchTogetherPanel.tsx:74-74
  • web/src/components/ImageSelectorTab.tsx:304-304
  • web/src/player/components/SubtitleSearchModal.tsx:347-347
  • web/src/pages/audiobooks/player/SpeedControl.tsx:147-147
  • web/src/player/components/SubtitleTranslateModal.tsx:401-401
  • web/src/pages/audiobooks/player/PlayerSettingsMenu.tsx:136-136
  • web/src/pages/audiobooks/player/PlayerSettingsMenu.tsx:79-79
  • web/src/pages/audiobooks/player/PlayerSettingsMenu.tsx:92-92

Kody rule violation: Validate contrast on the actual composited surfaces

Prompt for LLM
File web/src/pages/ItemDetail/components/SubtitleSearchDialog.tsx, line 353:

Score label has insufficient contrast on the tinted panel

The score label applies 70% opacity to the tone color over the tinted score panel. In the light theme, the amber and emerald text colors already have insufficient contrast against light surfaces, and the opacity reduces it further. Use a label color that reaches at least 4.5:1 after compositing over the panel and its hover state, and verify the result in both themes.

**Also found in:**
- `web/src/components/JellyfinSessionPill.tsx:17-17`
- `web/src/player/components/SubtitleSearchModal.tsx:355-355`
- `web/src/components/collections/StarterPacksDialog.tsx:366-366`
- `web/src/player/components/SubtitleTranslateModal.tsx:350-350`
- `web/src/player/components/MarkerEditPanel.tsx:89-89`
- `web/src/player/components/MarkerEditPanel.tsx:199-199`
- `web/src/player/components/WatchTogetherPanel.tsx:76-76`
- `web/src/components/ImageSelectorTab.tsx:193-193`
- `web/src/player/components/WatchTogetherPanel.tsx:74-74`
- `web/src/components/ImageSelectorTab.tsx:304-304`
- `web/src/player/components/SubtitleSearchModal.tsx:347-347`
- `web/src/pages/audiobooks/player/SpeedControl.tsx:147-147`
- `web/src/player/components/SubtitleTranslateModal.tsx:401-401`
- `web/src/pages/audiobooks/player/PlayerSettingsMenu.tsx:136-136`
- `web/src/pages/audiobooks/player/PlayerSettingsMenu.tsx:79-79`
- `web/src/pages/audiobooks/player/PlayerSettingsMenu.tsx:92-92`

Kody rule violation: [Validate contrast on the actual composited surfaces](https://kodus.siloserver.org/settings/code-review/1247142351/kody-rules/eb663bb6-a07f-41d6-91c5-069de4ca15c6?teamId=ba9922fc-c0ea-4cf8-87bb-9d4f42ffc73e)

Talk to Kody by mentioning @kody

Was this suggestion helpful? React with 👍 or 👎 to help Kody learn from this interaction.

​

​

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR changes only font-size classes on these lines; the colors and opacity are the same as on main, so contrast is unchanged. Out of scope for a text-size change.

🤖 Claude Code (claude-opus-5-5)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed. The diff changes the font-size unit, not the colors or opacity, so it does not introduce the reported contrast issue. The rem conversion can change the rendered text size when the root font size differs from 16px, but it does not change the contrast ratio.

The suggestion is out of scope for this PR. The existing contrast concern can be tracked separately if needed.

…re fixed

Review fixes for the rem conversion:

- The library A-Z letters now also follow the browser's font size, so with
  a large browser font and Extra large they outgrew the rail's rows and ran
  into each other. Cap each letter at 80% of its row height.
- The New collection cards' decorative picture sits in a fixed 168px frame;
  keep its sample rows in pixels so they don't wrap or spill out of it.
- The rule also converts text-[length:Npx], and a colon inside brackets no
  longer splits a class token into a variant.

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 ❌

Comment thread web/eslint-rules/class-tokens.js Resolved

@Quick104 Quick104 left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adversarial review (gemini-4-neon, reviewed 4224f65)

The core approach holds up: app.css had 13 !important pixel overrides with no variant selectors, tailwind-merge (3.5.0) classifies text-[Nrem] in the font-size group without colliding with text colors or text-ellipsis, CI's ESLint cache keys cover web/eslint-rules/**, and no remaining pixel font sizes were left in web/src/ CSS or inline styles.

Four verified issues remain (posted inline):

  • G1 (medium) — classParts splits on colons inside [...], letting Tailwind v4 type-hinted pixel sizes (text-[length:13px]) bypass silo/text-size-in-rem (and border-l-[length:2px] bypass silo/no-physical-direction).
  • G2 (medium) — PX_SIZE is unanchored on the right, so it rewrites non-class strings with trailing punctuation/characters and turns text-[13px]/[18px] into a mixed-unit text-[0.8125rem]/[18px].
  • G3 (low) — Several fixed-pixel-height pills and badges (VariantChips.tsx, ServerActivity.tsx, PluginListControls.tsx, AdminActivity.tsx, NowPlayingWidget.tsx) still pin h-[18px]–h-[30px] / max-h-[18px] while their converted text-[Nrem] now scales with browser default font size and Extra large.
  • G4 (low) — Newly scaling text-[0.78125rem] inside NewCollectionPicker's decorative Stage wraps sample titles onto two lines inside fixed h-9 rows at 1024px–1280px under Extra large.

Comment thread web/eslint-rules/class-tokens.js Resolved
Comment thread web/eslint-rules/text-size-in-rem.js Resolved
A variant like [&_[data-slot=input]]: has brackets inside brackets; the
parser stopped at the inner one, so both rules skipped the utility after it.

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 ❌

…m rule

Text in these chips and badges now follows the browser's font size as well
as Text Size, so their pixel heights could clip it. Give them the same
heights in rem (h-[30px] becomes h-7.5), unchanged at the default size.

The lint rule now converts only whole class tokens, and converts a pixel
line height after the size (text-[13px]/[18px]) along with it.

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 left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adversarial review (claude-opus-5-5, reviewed 7653561)

This round's changes hold up. One nit, inline.

What I checked:

  • Parser. I ran no-physical-direction with the old and new classParts over every line in web/src, and the output is identical. The new one also handles [&_[data-x=a:b]]:, text-[length:13px]/6, and !/trailing ! correctly. Brackets nested two levels deep ([&_[a[b]]]:text-[13px]) aren't recognised, so the rule skips the token. That fails safe, and no such token exists today.
  • Fixed heights. None of the remaining fixed h-/size-/max-h- pixel boxes in web/src wraps rem text. The ones left are min-h-*, which grow. The Now Playing max-h-[18px] row is already on main, as stated.
  • New collection picture. The disable block covers Stage and nothing else. That is narrower than a file-level exclusion in the ESLint config, and its reason holds.
  • Line-height modifier. No text-[Npx]/[Mpx] token exists in web/src before or after this PR, so that branch only protects future code. It is cheap and closes the G2 case, so I'd keep it. One inconsistency: the rule converts a pixel line height written as /[18px] but deliberately leaves leading-[18px] alone. There are no leading-[Npx] tokens today, so nothing is affected.

I compiled the LetterBar classes with Tailwind 4.2.1. They produce the intended --letter-row and font-size: min(...) declarations. --impersonation-banner-height defaults to 0px, so the calc stays valid without a banner. I did not check this round's layout in a browser.

// so the letters wrap into two columns of 14 in the same order.
// One row's height, so a letter never grows taller than its row when
// large text meets a short rail.
"[--letter-row:calc((min(42rem,100dvh-14rem-var(--impersonation-banner-height))-0.75rem)/27)] [@media(max-height:599px)]:[--letter-row:calc((100dvh-9rem-var(--impersonation-banner-height)-0.75rem)/14)]",

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: --letter-row is a second copy of the rail's geometry: the h-[min(42rem,…)] and short-viewport heights, the py-1.5 padding (0.75rem), and the 27/14 row counts. If the rail height, padding, or letter count changes and this line doesn't, the cap drifts without any error. The copy already leaves out the rail's 2px border, but the 80% factor absorbs that.

A size container on each letter would read the actual row height instead and drop this line. The button's width comes from w-5/w-6 and its height from flex-1 (or the minmax(0,1fr) grid row), so neither depends on content:

[container-type:size] text-[length:min(0.625rem,80cqh)] sm:text-[length:min(0.6875rem,80cqh)]

I haven't checked this in a browser. If you keep the variable, a comment on the rail's h-[…] saying the two must change together would help.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keeping the variable for now: it sits in the same class list as the rail height it mirrors, so a change to one is next to the other, and it compiles and measures correctly (10px letters in 12.4px rows at a 24px browser font with Extra large). A container query per letter would need an extra wrapper around each letter; I'd rather do that together with choosing the rail layout from the real row height, which is now filed separately.

🤖 Claude Code (claude-opus-5-5)

Quick104 and others added 2 commits November 20, 2026 23:41
Conflicts were class strings: took main's side and re-ran the rem autofix,
then reapplied the Devices saved-view row and search box changes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Find the last colon outside brackets and parentheses instead of matching a
fixed nesting depth, so deeper arbitrary variants and text-(length:--x)
stay whole.

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 ❌
⚠️ 4 Kody Rule(s) were not evaluated

These rules declare that they need repository context beyond this diff, and the review could not retrieve it, so they were not judged on this pull request:

  • Preserve optional store capabilities through production wrappers
  • Detach mandatory cleanup from request cancellation and bound its lifetime
  • Preserve durable media identity and share identity-evidence precedence
  • Bound decoder throughput trades and share direct-play eligibility

CSS units are case-insensitive, so text-[length:13PX] and a /[18PX] line
height compile to pixels too. Cover them, and a quoted selector variant,
in the rule's tests.

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 ❌
⚠️ 4 Kody Rule(s) were not evaluated

These rules declare that they need repository context beyond this diff, and the review could not retrieve it, so they were not judged on this pull request:

  • Preserve optional store capabilities through production wrappers
  • Detach mandatory cleanup from request cancellation and bound its lifetime
  • Preserve durable media identity and share identity-evidence precedence
  • Bound decoder throughput trades and share direct-play eligibility

Quick104 and others added 4 commits November 21, 2026 00:00
Conflicts were class strings in the restore pages: took main's side and
re-ran the rem autofix.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Conflicts were class strings in AdminActivity and the restore rows: took
main's side, re-ran the rem autofix, and kept the rem height on the
Activity filter buttons.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Quick104 and others added 2 commits November 22, 2026 03:11
Conflicts were class strings only. Each conflicted file takes main's
version, then `eslint --fix` converts its pixel text sizes, and the
branch's hand edits (fixed heights in rem, the Devices saved-view label,
the New collection picture) are applied again. LibraryActivityPanel,
added on main, gets the same conversion.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@Quick104 Quick104 left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review of 3cf3825 (this branch after merging current main; the summary comment covers the merge). Four findings and two nits below, from my review and a three-model council round (Sol, Opus, Gemini). I'm fixing all of them in a commit on this branch, so there's no need to change anything yourself.

🤖 Claude Code (claude-opus-5-5)

Comment thread web/eslint-rules/text-size-in-rem.js Resolved
…gaps

- LetterBar: cap a letter at its full row height (less the rail's border)
  rather than 80% of it. On a 600-760px tall window at the default browser
  font, the 80% cap made Large and Extra large letters smaller than Default.
- NewCollectionPicker: keep the synced picture's posters and row gap in
  pixels too, so its poster row isn't cut off at Large and Extra large,
  and give the lint exception its real reason.
- text-size-in-rem: also convert `[font-size:Npx]` and `.Npx` sizes, and
  match the unit alone case-insensitively, so `text-[LENGTH:13px]` (a colour
  to Tailwind) and upper-case non-class text are left alone.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@silo-kody

silo-kody Bot commented Nov 22, 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 ❌

@@ -145,7 +145,7 @@ export function CollectionOptionBody({
<span dir="auto" className="block w-fit max-w-full truncate text-sm font-semibold">

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kody code-review Kody Rules medium

Automatic direction can clip the start of numerically prefixed titles

With dir="auto", RTL truncation can clip the numeric prefix of a mixed-direction title. Use Unicode-bidi-aware clipping that preserves prefixes, and test narrow titles in both interface directions.

Also found in:

  • web/src/components/MatchItemDialog.tsx:698-698
  • web/src/components/calm/ListRow.tsx:157-157

Kody rule violation: Preserve the logical start of bidirectional truncated text

Prompt for LLM
File web/src/components/homeRows/addRow/collectionChooser.tsx, line 145:

Automatic direction can clip the start of numerically prefixed titles

`dir="auto"` chooses the first strong character's direction but does not account for a long weak numeric prefix. For a title beginning with many ASCII or Arabic-Indic digits followed by Arabic text, the RTL truncation can clip the logical start of the number. Use Unicode-bidi-aware direction and clipping behavior that preserves numeric prefixes, and test narrow mixed-direction titles in both interface directions.

**Also found in:**
- `web/src/components/MatchItemDialog.tsx:698-698`
- `web/src/components/calm/ListRow.tsx:157-157`

Kody rule violation: [Preserve the logical start of bidirectional truncated text](https://kodus.siloserver.org/settings/code-review/1247142351/kody-rules/543088f5-5d79-48a9-804f-7c9ce6776d3a?teamId=ba9922fc-c0ea-4cf8-87bb-9d4f42ffc73e)

Talk to Kody by mentioning @kody

Was this suggestion helpful? React with 👍 or 👎 to help Kody learn from this interaction.

​

​

Tailwind scans the whole web directory, so the class names in the rule
tests were compiled into the production CSS, and an invalid one
(`text-[LENGTH:13px]`, a colour to Tailwind) broke `vite build`. Exclude
`eslint-rules` from its sources and write that test case as a plain string.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@silo-kody

silo-kody Bot commented Nov 22, 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 ❌
⚠️ 4 Kody Rule(s) were not evaluated

These rules declare that they need repository context beyond this diff, and the review could not retrieve it, so they were not judged on this pull request:

  • Preserve optional store capabilities through production wrappers
  • Detach mandatory cleanup from request cancellation and bound its lifetime
  • Preserve durable media identity and share identity-evidence precedence
  • Bound decoder throughput trades and share direct-play eligibility

@Quick104

Quick104 commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor Author

Maintainer review summary

Reviewed head: dc479bc. It merges current main into 39ad0cd, which merged main into 2e163d9, the head the earlier rounds of this review fixed. The council's second round reviewed f5f077e; 2e163d9 only excludes the lint rules' test files from Tailwind's sources.

Fit: 9/10 · Readiness: 9/10: ready (assuming CI is green)

What I did on the branch

  • Merged current main (dc479bc, 14 commits, no conflicts). The merged commits add no pixel text sizes, so nothing new needed converting. The diff against main is the same 256 files as before.
  • Earlier merge (39ad0cd, 28 commits). Three conflicts, all class strings where main changed something next to a pixel size: CalendarEventCard.tsx, AdminActivity.tsx and SettingField.tsx. I took main's text and reran the rule's autofix. Each file now equals main apart from the px→rem conversions and AdminActivity's existing h-7.5 hand edit. The rule reports nothing else in web/src, so the merged commits added no new pixel sizes.
  • Earlier merge (3cf3825, then a395106 after fix(web): show the "…" in Chrome on cut text that runs the other way from the page #5067 landed). 26 class-string conflicts, resolved the same way. LibraryActivityPanel.tsx, new on main then, got the same conversion. An audit showed every changed file in web/src equals main's copy plus the autofix and Prettier, apart from the 14 files with hand edits.
  • Fixed the review findings in f5f077e and 2e163d9:
    • A–Z rail. At the default browser font, letters shrank below their Default size at Large and Extra large on 600–760px tall windows: 11 → 10.7px at 1366×657, and 11 → 9.6px at 1280×620. Each letter is now capped at its full row height, less the rail's border, so the sizes are 11 / 12.4 / 13.3px and 11 / 12.4 / 12.0px, and the letters stay separate.
    • New collection picture. The synced-list picture cut off its poster row at Large and Extra large. Its posters and row gap are now in pixels too.
    • Lint rule. It now converts [font-size:Npx] and .Npx sizes. Only the px unit is case-insensitive, so text-[LENGTH:13px] (a colour to Tailwind) is left alone. The new test cases fail against the rule at 3cf3825.
    • Tailwind sources. Tailwind scanned web/eslint-rules, so the rule tests' class names were compiled into the app's CSS, and one invalid name broke vite build. app.css now excludes that folder.
    • Lint exception comment. It now gives the real reason.

Verification

Other feedback

CodeRabbit's three comments on f5f077e are answered in their threads. None needed a change: quoted selector values and prose strings shaped like a class don't occur in web/src, and the audiobook settings panel's unbounded height above the mini bar is the same on main. Its other note, letters shrinking on a short rail at very large browser fonts, is the rail geometry #4898 covers.

Left for the maintainers

  • Rail geometry ([bug] Library A–Z rail is unreadable on short windows with a large browser font and Extra large text #4898). Sol found that while an admin impersonates someone, the banner takes height from a short rail, so 1280×620 at Extra large gives 9.7px letters. Gemini found that Extra large can sit slightly below Large between 600 and 626px tall. Both need the two-column switch that [bug] Library A–Z rail is unreadable on short windows with a large browser font and Extra large text #4898 proposes, not a different cap.
  • Possible follow-ups, none blocking. The rule doesn't lint pixel font sizes in style objects, inside calc()/clamp(), or as leading-[Npx]; none exist today. Separately, some fixed pixel widths and heights around text that now grows remain: PillSwitcher's h-[34px] (already too short on main with a 24px browser font), a 120px cap on device-override tab names (truncates sooner at Extra large), the 62px "Mine" column in the collection viewer preview (a long German word may overflow; estimated, not captured), and the audiobook settings panel above the mini bar, which has no height limit on short windows (as on main).
  • Not changed (answered). A quoted selector value inside an arbitrary variant gets rewritten by the autofix; that's contrived, uses the same tokenizer as before, and has no caller. h-7.5 on the Starter packs select is overridden by the component's own height, exactly as h-[30px] was.

Checks

  • Validated features: no passed case is affected. None of the 47 passed Web and Web admin cases tests Text size, and at Default size every converted class renders the same as before.
  • User manual: unaffected. The preferences page names the Accessibility settings but doesn't describe how Text size scales.
  • Apple/Android parity: not applicable. This is web-only, and the native apps follow the platform's text size.
  • Translations: no interface text changed.

Council (Sol, Opus, Gemini)

Member Round 1 (3cf3825) Round 2 (f5f077e)
Sol (gpt-6.2-sol, xhigh) 8/10 8.5/10
Opus (claude-opus-5-5, high) 8.5/10 9/10
Gemini (gemini-4-neon, xhigh) 8.5/10 9/10

No council round ran on the last two merges. They only bring in main and convert the three resolved hunks of the first one, the same way as the rest of the branch.

Why these scores. Fit 9: it fixes an accessibility setting that silently skipped a lot of text, at the root (rem sizing plus a lint rule) instead of a growing override list, and adds no new setting or surface. Readiness 9: the approach holds, the fixed behavior was shown live, the validation-board check found no affected case, and what remains are separate follow-ups.

🤖 Claude Code (claude-opus-5-5)

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

Minor comments: 1

web/src/components/catalog/LetterBar.tsx: 1

144-144: Minor · Functional Correctness · Poor tradeoff

Letters shrink as the root font size grows past about 22px.

At a 600px viewport with no banner, the one-column row cap divides the rail's available height by 27. At a 32px root this gives about 4.67px, and the letter font min(0.625rem, var(--letter-row)) follows it down. Above about 22px root at this height, letter size falls as root size rises, which reverses the text-scaling goal.

This affects only extreme browser font sizes. At in-app Large and X-large roots (18px and 20px), letters stay at about 10–11px at 600px height. The previous 10px letters also overflowed their slots in the same state, so this is not a new unreadable state. The change makes the letters smaller instead of overflowing.

Keep letter size from decreasing as root size increases. The rail needs a layout that holds each letter at or above its previous size when rows are short, such as wrapping into columns or allowing scroll. The choice of layout is left to the author.

Review info

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: 0aeb4aac-731f-40f6-9723-160144bd297a
Commits

Reviewing files that changed from the base of the PR and between a395106 and f5f077e.

Files selected for processing: 256

  • .github/workflows/trusted-linux-ci.yml
  • web/eslint-rules/class-tokens.js
  • web/eslint-rules/no-physical-direction.js
  • web/eslint-rules/text-size-in-rem.js
  • web/eslint-rules/text-size-in-rem.test.js
  • web/eslint.config.js
  • web/src/app.css
  • web/src/components/AddToCollectionDialog.tsx
  • web/src/components/AdminLayout.tsx
  • web/src/components/AdminSectionCommandDialog.tsx
  • web/src/components/AdminSessionActions.tsx
  • web/src/components/AdminSidebar.tsx
  • web/src/components/CollectionTemplateGallery/CollectionTemplateCard.tsx
  • web/src/components/CollectionTemplateGallery/MDBListBrowser.tsx
  • web/src/components/EditMetadataDialog.tsx
  • web/src/components/ImageSelectorTab.tsx
  • web/src/components/ImpersonationBanner.tsx
  • web/src/components/InfoCard.tsx
  • web/src/components/JellyfinSessionPill.tsx
  • web/src/components/LibraryAccessSelector.tsx
  • web/src/components/MatchItemDialog.tsx
  • web/src/components/PlaybackRouteBadges.tsx
  • web/src/components/SaveBar.tsx
  • web/src/components/ServerActivity.tsx
  • web/src/components/SideNav.tsx
  • web/src/components/SplitItemDialog.tsx
  • web/src/components/admin/CollapsibleDiagnosticsSection.tsx
  • web/src/components/admin/DeviceConnections.tsx
  • web/src/components/admin/RestartBanner.tsx
  • web/src/components/admin/dashboard/DashboardGrid.tsx
  • web/src/components/admin/dashboard/WidgetRangePicker.tsx
  • web/src/components/admin/dashboard/WidgetViewToggle.tsx
  • web/src/components/admin/dashboard/charts/BarList.tsx
  • web/src/components/admin/dashboard/charts/ChartEmptyState.tsx
  • web/src/components/admin/dashboard/charts/LineChart.tsx
  • web/src/components/admin/dashboard/charts/StackedColumnChart.tsx
  • web/src/components/admin/dashboard/charts/chartChrome.tsx
  • web/src/components/admin/dashboard/widgets/ApiClientsWidget.tsx
  • web/src/components/admin/dashboard/widgets/ConcurrentStreamsWidget.tsx
  • web/src/components/admin/dashboard/widgets/DownloadsWidget.tsx
  • web/src/components/admin/dashboard/widgets/EgressWidget.tsx
  • web/src/components/admin/dashboard/widgets/LibrariesWidget.tsx
  • web/src/components/admin/dashboard/widgets/NowPlayingWidget.tsx
  • web/src/components/admin/dashboard/widgets/PlaybackActivityWidget.tsx
  • web/src/components/admin/dashboard/widgets/PlaybackReliabilityWidget.tsx
  • web/src/components/admin/dashboard/widgets/RecentActivityWidget.tsx
  • web/src/components/admin/dashboard/widgets/RecentErrorsWidget.tsx
  • web/src/components/admin/dashboard/widgets/ScanActivityWidget.tsx
  • web/src/components/admin/dashboard/widgets/ScannerWidget.tsx
  • web/src/components/admin/dashboard/widgets/ServerResourcesWidget.tsx
  • web/src/components/admin/dashboard/widgets/SessionProfilePill.tsx
  • web/src/components/admin/dashboard/widgets/TopProfilesWidget.tsx
  • web/src/components/admin/dashboard/widgets/TopTitlesWidget.tsx
  • web/src/components/admin/dashboard/widgets/TranscodeNodesWidget.tsx
  • web/src/components/admin/dashboard/widgets/UsersWidget.tsx
  • web/src/components/admin/dashboard/widgets/WatchProvidersWidget.tsx
  • web/src/components/admin/dashboard/widgets/statTiles.tsx
  • web/src/components/admin/deviceOverrides.tsx
  • web/src/components/admin/libraries/AmbiguousRootsSection.tsx
  • web/src/components/admin/libraries/LibraryActivityPanel.tsx
  • web/src/components/admin/libraries/LibraryEditorDialog.tsx
  • web/src/components/admin/libraries/LibraryFormSections.tsx
  • web/src/components/admin/libraries/LibraryRowParts.tsx
  • web/src/components/admin/plugins/CommunityCatalogControl.tsx
  • web/src/components/admin/plugins/PluginDetailSections.tsx
  • web/src/components/admin/plugins/PluginListControls.tsx
  • web/src/components/admin/plugins/PluginSourcePanels.tsx
  • web/src/components/admin/plugins/PluginTile.tsx
  • web/src/components/admin/plugins/PluginVisuals.tsx
  • web/src/components/admin/subtitles/AdminSubtitlesTable.tsx
  • web/src/components/admin/subtitles/subtitleAdminStyles.ts
  • web/src/components/auth/AuthCard.tsx
  • web/src/components/calendar/CalendarEventCard.tsx
  • web/src/components/calendar/DayGroup.tsx
  • web/src/components/calendar/WeekNavigator.tsx
  • web/src/components/calm/ActionMenu.tsx
  • web/src/components/calm/ListRow.tsx
  • web/src/components/calm/PageMoreMenu.tsx
  • web/src/components/calm/PillSwitcher.tsx
  • web/src/components/calm/PosterTile.tsx
  • web/src/components/calm/SelectModeBar.tsx
  • web/src/components/calm/StepDialog.tsx
  • web/src/components/catalog/LetterBar.tsx
  • web/src/components/collections/CollectionRowSummary.tsx
  • web/src/components/collections/DeleteCollectionDialog.tsx
  • web/src/components/collections/NewCollectionPicker.tsx
  • web/src/components/collections/StarterPacksDialog.tsx
  • web/src/components/collections/admin/CollectionListItem.tsx
  • web/src/components/collections/admin/GroupCard.tsx
  • web/src/components/collections/admin/GroupsBoard.tsx
  • web/src/components/collections/admin/ViewerPreview.tsx
  • web/src/components/collections/editor/AddAsRowMenu.tsx
  • web/src/components/collections/editor/CollectionEditor.tsx
  • web/src/components/collections/editor/CollectionMetaLine.tsx
  • web/src/components/collections/editor/CollectionPreviewPane.tsx
  • web/src/components/collections/editor/ConflictBanner.tsx
  • web/src/components/collections/editor/DetailsPanel.tsx
  • web/src/components/collections/editor/EditorHeader.tsx
  • web/src/components/collections/editor/LockedSourceSummary.tsx
  • web/src/components/collections/editor/LookPanel.tsx
  • web/src/components/collections/editor/ManualContentsPanel.tsx
  • web/src/components/collections/editor/RowsThatShowIt.tsx
  • web/src/components/collections/editor/SmartRulesPanel.tsx
  • web/src/components/collections/editor/SyncStatusBlock.tsx
  • web/src/components/collections/editor/SyncedListPanel.tsx
  • web/src/components/collections/editor/WhereItShowsPanel.tsx
  • web/src/components/collections/fields/ArtworkFields.tsx
  • web/src/components/collections/fields/FranchiseIdField.tsx
  • web/src/components/collections/fields/LibrariesLine.tsx
  • web/src/components/collections/fields/OrderBlock.tsx
  • web/src/components/collections/fields/ScheduleField.tsx
  • web/src/components/collections/fields/Segmented.tsx
  • web/src/components/collections/fields/SettingRow.tsx
  • web/src/components/collections/fields/SourceCard.tsx
  • web/src/components/collections/fields/TMDBChartField.tsx
  • web/src/components/collections/fields/ToggleRow.tsx
  • web/src/components/homeRows/AdminNextUpDefaultsCard.tsx
  • web/src/components/homeRows/HomePreferencesCard.tsx
  • web/src/components/homeRows/HomeRowsPage.tsx
  • web/src/components/homeRows/ResetProfileDialog.tsx
  • web/src/components/homeRows/RestoreDialog.tsx
  • web/src/components/homeRows/addRow/CollectionPicker.tsx
  • web/src/components/homeRows/addRow/CollectionsRowEditor.tsx
  • web/src/components/homeRows/addRow/CuratedTitlesEditor.tsx
  • web/src/components/homeRows/addRow/LibraryPageChips.tsx
  • web/src/components/homeRows/addRow/MoreOptions.tsx
  • web/src/components/homeRows/addRow/ParamFields.tsx
  • web/src/components/homeRows/addRow/RowCard.tsx
  • web/src/components/homeRows/addRow/RowForm.tsx
  • web/src/components/homeRows/addRow/RowPicker.tsx
  • web/src/components/homeRows/addRow/RowPreview.tsx
  • web/src/components/homeRows/addRow/RuleBuilder.tsx
  • web/src/components/homeRows/addRow/SeasonalFields.tsx
  • web/src/components/homeRows/addRow/ShowsSummary.tsx
  • web/src/components/homeRows/addRow/VariantChips.tsx
  • web/src/components/homeRows/addRow/collectionChooser.tsx
  • web/src/components/homeRows/notes.tsx
  • web/src/components/notifications/NotificationInbox.tsx
  • web/src/components/notifications/NotifiedSeriesList.tsx
  • web/src/components/onboarding/TourHost.tsx
  • web/src/components/overlays/settings/BadgeImagesControl.tsx
  • web/src/components/overlays/settings/OverlayImageLibrary.tsx
  • web/src/components/policy/RegoEditor.tsx
  • web/src/components/profiles/AllowedTitlesSection.tsx
  • web/src/components/sections/EditableSectionRows.tsx
  • web/src/components/settings/AdvancedSection.tsx
  • web/src/components/settings/DeviceList.tsx
  • web/src/components/settings/DeviceSettingGroups.tsx
  • web/src/components/settings/ProfileLaunchSettingsGroup.tsx
  • web/src/components/settings/SettingRow.tsx
  • web/src/components/settings/SettingsGroup.tsx
  • web/src/components/settings/SettingsSidebar.tsx
  • web/src/components/settings/SettingsSubheading.tsx
  • web/src/components/settings/SubtitleAppearancePanelView.tsx
  • web/src/components/ui/radio-group.tsx
  • web/src/pages/AdminAccessGroups.tsx
  • web/src/pages/AdminActivity.tsx
  • web/src/pages/AdminBackups.tsx
  • web/src/pages/AdminCollections.tsx
  • web/src/pages/AdminDevices.tsx
  • web/src/pages/AdminDiagnostics.parts.tsx
  • web/src/pages/AdminHistoryImport.tsx
  • web/src/pages/AdminLibraries.tsx
  • web/src/pages/AdminNodes.tsx
  • web/src/pages/AdminPlaybackHistory.tsx
  • web/src/pages/AdminPluginDetail.tsx
  • web/src/pages/AdminPlugins.tsx
  • web/src/pages/AdminRequestDiscover.tsx
  • web/src/pages/Calendar.tsx
  • web/src/pages/Collections.cards.tsx
  • web/src/pages/Collections.tsx
  • web/src/pages/EbookReader.tsx
  • web/src/pages/HouseholdSetup.tsx
  • web/src/pages/InviteClaim.tsx
  • web/src/pages/ItemDetail/MangaContent.tsx
  • web/src/pages/ItemDetail/components/MediaInfoDialog.tsx
  • web/src/pages/ItemDetail/components/SubtitleSearchDialog.tsx
  • web/src/pages/Requests.tsx
  • web/src/pages/admin-backups/BackupS3Dialogs.tsx
  • web/src/pages/admin-backups/BackupSettings.tsx
  • web/src/pages/admin-backups/BackupTable.tsx
  • web/src/pages/admin-backups/BackupWarningDetails.tsx
  • web/src/pages/admin-backups/RestoreChoose.tsx
  • web/src/pages/admin-backups/RestoreRows.tsx
  • web/src/pages/admin-backups/RestoreRun.tsx
  • web/src/pages/admin-backups/RestoreUsers.tsx
  • web/src/pages/admin-backups/UploadedBackups.tsx
  • web/src/pages/admin-downloads/PreparationTab.tsx
  • web/src/pages/admin-downloads/PreparedFilesTab.tsx
  • web/src/pages/admin-downloads/controls.tsx
  • web/src/pages/admin-requests/DiscoverFilterFields.tsx
  • web/src/pages/admin-requests/DiscoverRowDialog.tsx
  • web/src/pages/admin-requests/RequestQueue.tsx
  • web/src/pages/admin-settings/AIModelField.tsx
  • web/src/pages/admin-settings/AIProviders.tsx
  • web/src/pages/admin-settings/AppearanceSettings.tsx
  • web/src/pages/admin-settings/CreateInvitationForm.tsx
  • web/src/pages/admin-settings/GeneralSettings.tsx
  • web/src/pages/admin-settings/InvitationsTab.tsx
  • web/src/pages/admin-settings/InviteCodesTab.tsx
  • web/src/pages/admin-settings/SettingField.tsx
  • web/src/pages/admin-settings/StorageSettings.tsx
  • web/src/pages/admin-users/detail/access/EditableCard.tsx
  • web/src/pages/admin-users/detail/access/LibraryAccessCard.tsx
  • web/src/pages/admin-users/detail/activity/IPAddressesCard.tsx
  • web/src/pages/admin-users/detail/downloads/DeviceDownloadsCard.tsx
  • web/src/pages/admin-users/detail/downloads/DownloadsTab.tsx
  • web/src/pages/admin-users/detail/preferences/AddSettingPicker.tsx
  • web/src/pages/admin-users/detail/preferences/LevelSettings.tsx
  • web/src/pages/admin-users/detail/preferences/PreferencesTab.tsx
  • web/src/pages/admin-users/detail/preferences/SettingJsonDialog.tsx
  • web/src/pages/admin-users/detail/ui.tsx
  • web/src/pages/admin/autoscan/ActivityPanel.tsx
  • web/src/pages/admin/autoscan/ChoiceCard.tsx
  • web/src/pages/admin/autoscan/PollEventInspectorSheet.tsx
  • web/src/pages/admin/autoscan/SourceDialog.tsx
  • web/src/pages/audiobooks/components/NarratorPicker.tsx
  • web/src/pages/audiobooks/player/MiniBar.tsx
  • web/src/pages/audiobooks/player/PlayerSettingsMenu.tsx
  • web/src/pages/audiobooks/player/SkipIcon.tsx
  • web/src/pages/audiobooks/player/SpeedControl.tsx
  • web/src/pages/settings/AccessibilitySettings.tsx
  • web/src/pages/settings/CardOverlaySettings.tsx
  • web/src/pages/settings/ConnectAppsSettings.tsx
  • web/src/pages/settings/DeviceSettings.tsx
  • web/src/pages/settings/HistoryImportSettings.tsx
  • web/src/pages/settings/PlaybackConnection.tsx
  • web/src/pages/settings/PlaybackSettings.tsx
  • web/src/pages/settings/PosterCardPreview.tsx
  • web/src/pages/settings/SubtitleAppearanceSettings.tsx
  • web/src/pages/settings/TitleArtSettingsGroup.tsx
  • web/src/pages/settings/WatchProvidersSettings.tsx
  • web/src/pages/settings/WebhookSyncSettings.tsx
  • web/src/pages/settings/YourDataSettings.tsx
  • web/src/pages/setup-wizard/steps/AccountStep.tsx
  • web/src/pages/setup-wizard/steps/LibraryStep.tsx
  • web/src/pages/watchtogether/StartPartySheet.tsx
  • web/src/pages/watchtogether/WatchPartyHub.tsx
  • web/src/pages/watchtogether/room/RoomRail.tsx
  • web/src/pages/watchtogether/room/browse/BrowseShelf.tsx
  • web/src/pages/watchtogether/room/picker/EpisodeStateDots.tsx
  • web/src/pages/watchtogether/room/picker/MovieDetailPanel.tsx
  • web/src/pages/watchtogether/room/picker/PickerRow.tsx
  • web/src/pages/watchtogether/room/picker/SeriesDrilldown.tsx
  • web/src/pages/watchtogether/room/stage/InviteBar.tsx
  • web/src/pages/watchtogether/room/stage/LobbyStage.tsx
  • web/src/pages/watchtogether/room/stage/PlayingStage.tsx
  • web/src/pages/watchtogether/room/stage/StagedHero.tsx
  • web/src/pages/watchtogether/room/stage/SuggestionList.tsx
  • web/src/pages/watchtogether/room/stage/VotingStage.tsx
  • web/src/playback/WatchPlaybackChrome.tsx
  • web/src/player/components/MarkerEditPanel.tsx
  • web/src/player/components/SubtitleSearchModal.tsx
  • web/src/player/components/SubtitleSyncIndicator.tsx
  • web/src/player/components/SubtitleTranslateModal.tsx
  • web/src/player/components/WatchTogetherPanel.tsx

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.

}

// Tokens are separated by whitespace, quotes, or template-literal joints.
const TOKEN = /(?<=^|[\s"'`}])([^\s"'`${}]+)(?=$|[\s"'`$])/g;

@coderabbitai coderabbitai Bot Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor · Functional Correctness · Quick win

Do not convert text inside quoted selector values.

For className="[&_[data-label='text-[13px]']]:text-sm", TOKEN extracts the quoted text-[13px] value as a separate utility. The fixer changes the selector to match text-[0.8125rem]. Descendants with the original data-label no longer match.

Keep quoted selector contents inside their complete class token. Add this case as valid input. The existing quoted-selector test does not cover a value that itself matches a font-size utility.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The autofix would rewrite a quoted selector value that is itself a pixel font-size class, as in this example. No class string in web/src has one at 39ad0cd, and no-physical-direction already splits tokens this way. The earlier review left this unchanged for that reason, and it stays that way here.

🤖 Claude Code (claude-opus-5-5)

}
return {
Literal(node) {
if (typeof node.value === "string") check(node);

@coderabbitai coderabbitai Bot Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor · Functional Correctness · Quick win

Exclude non-class strings from text-size autofixes.

For const hint = "Use text-[13px] here";, the new rule reports an error and changes the explanatory text. This visitor checks every string literal without establishing that it contains classes. The valid prose test avoids this only because punctuation prevents a token match.

Restrict the text-size rule to class-bearing expressions and supported class builders. Preserve unrelated strings, and add this whitespace-delimited prose case.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The rule checks every string literal, as no-physical-direction does, so a prose string with a bare text-[13px] token would be reported. No such string exists: every literal the rule rewrote in this PR is a class list, which the per-file comparison with main confirms. A false report would surface in lint, where the line can carry a disable comment. I'm leaving the rule's scope as it is.

🤖 Claude Code (claude-opus-5-5)

Three conflicts, all class strings next to a pixel font size
(CalendarEventCard, AdminActivity, SettingField). Took main's text
and reran the text-size-in-rem autofix on them.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Quick104
Quick104 merged commit 43beecd into main Nov 23, 2026
18 checks passed
@Quick104
Quick104 deleted the fix/text-scale-arbitrary-sizes branch November 23, 2026 02:40
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/XXL 1000–2999 added + deleted lines (all files); change volume, not priority.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant