You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(web): size pixel text in rem so it grows with Text Size - #4861
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.
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.
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.
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.
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.
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]>
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.
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: 4
Check name
Status
Explanation
Title check
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
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Description check
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.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 1 remain after this review.
The reason will be displayed to describe this comment to others. Learn more.
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.
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)
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.
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.
The reason will be displayed to describe this comment to others. Learn more.
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.
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)
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.
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.
The reason will be displayed to describe this comment to others. Learn more.
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.
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)
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.
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]>
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.
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.
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]>
…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]>
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.
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:
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.
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]>
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 settingsReview 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]>
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 settingsReview 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
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]>
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]>
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.
…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]>
The reason will be displayed to describe this comment to others. Learn more.
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.
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)
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]>
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 settingsReview 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
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.
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
On sandboxes built from 3cf3825 and f5f077e, I measured and captured the A–Z rail and the New collection dialog at Default, Large and Extra large, and Scan Activity during a scan at Default and Extra large. The latest merge doesn't touch those screens.
On dc479bc: web lint (no errors), the format check, typecheck, pnpm run build, Go lint, make verify-route-inventory (current, 278 routes), the lint-rule tests and adminActivityPresentation.test.ts pass.
On 39ad0cd: web lint, the format check, typecheck and pnpm run build pass, as do the lint-rule tests and the Catalog test that renders the merged files. On 2e163d9 the full web suite passed apart from 7 files that timed out under host load; all 104 of their tests passed on a rerun.
Go vet and contracts: the route-inventory step couldn't read Go build-cache entries in CI. Run locally on this head, make verify-route-inventory reports the inventory current (278 routes). I've rerun the job. The earlier failure on 2e163d9 was a runner running out of memory. This PR changes no Go code.
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.
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.
Calendar Calendar — Web #1136 Web C1–C5: no behavior change. The old overrides applied only at Large and Extra large, so the week navigator at Default is unchanged.
The remaining Web cases: no behavior change, by the same reasoning.
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.
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.
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.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.
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.
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.
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.
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.
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bugSomething isn't workingimpact: polishAnnoyance, cosmetic, or nice-to-havepriority: P2Limited scope, workaround exists, or polishsize/XXL1000–2999 added + deleted lines (all files); change volume, not priority.
1 participant
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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]ortext-[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.csscarried a list of!importantoverrides 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. Sotext-[12px] sm:text-smin the Calendar showed the phone size on desktop, and an input passingtext-[13px]lost its ownmd:text-sm.Approach
text-[Npx]class inweb/srcis now the same size in rem (text-[12.5px]→text-[0.78125rem]). The!importantoverride list inapp.cssis gone. At the default size and a 16px browser font, every size renders exactly as before.silo/text-size-in-rem, flags pixel font sizes and fixes them witheslint --fix. It made every conversion in this PR, so a branch that adds atext-[Npx]class can run the same command after rebasing. It shares its class-token parsing withsilo/no-physical-direction(neweslint-rules/class-tokens.js).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
!importantconflicts. Extending the override list would have kept the responsive conflicts and needed a lint rule that parsesapp.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 changedweb/srcfile equals main's copy plus the autofix and Prettier, apart from the 14 files with hand edits. Lint, Prettier, typecheck andpnpm run buildpass. 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
eslint --fixis enough.Follow-ups
Checklist
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).
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 caughttext-[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()andleading-[Npx]aren't linted (none exist; possible follow-ups);h-7.5on a Starter packs select is overridden, ash-[30px]was before.Earlier rounds (author's):
Rounds: 2. Round 1 reviewed 4224f65, round 2 reviewed 7653561.
!importantblock<Input>sites with the same conflictVisual review: 2 rounds, final captures from the branch head before the last rebase (the rebase added no changes to these screens)
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 asname="text-[13px]", answered: no such string exists, and the rule scans literals the same wayno-physical-directiondoes. Gemini's round 1 (posted on the PR): the rule missedtext-[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-casePXunit, 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
🤖 Generated with Claude Code
Note
Convert pixel text sizes to rem across web so they scale with Text Size setting
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.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 byno-physical-direction.SavedViewRowlabels wrap instead of truncating, some fixed-height badges become min-height, and CI cache keys now includeweb/eslint-rules/**.NewCollectionPickerstage illustration keeps pixel sizing under an ESLint suppression.Macroscope summarized dc479bc.