Skip to content

fix(web): stop the phone admin header from cutting off title descenders - #4674

Merged
Quick104 merged 1 commit into
mainfrom
fix/admin-mobile-header-descenders
Nov 20, 2026
Merged

Quick104 merged 1 commit into
mainfrom
fix/admin-mobile-header-descenders

Conversation

@Quick104

@Quick104 Quick104 commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Related issue: N/A
Validation tasks: none

Other clients: N/A (browser layout fix in the web admin shell; the Apple, Android, and Roku apps don't render this header)

On phone and tablet widths, the sticky admin header cut off the bottom of the page title. The "p" in "Backups" and the "g" in "Settings" were sliced flat. Marks above and below the letters went too: Thai "Plugins" lost its tone mark, and the Vietnamese "Tasks" title read "Tác vu" instead of "Tác vụ". This change gives the title a line box tall enough for its letters, so they show whole and long titles still end in an ellipsis.

The title used truncate, which clips to the element's box, together with leading-none, which makes that box exactly one font size tall. At 15 px, Plus Jakarta Sans descenders reach about 3 px below the baseline, but the box ended 1 px below it.

Approach

The title now uses leading-normal (1.5) and no longer has mt-1. The extra half-leading (3.75 px) takes the place of the 4 px margin, so the gap between the "ADMIN" eyebrow and the title stays the same. The header's height doesn't change, because its 44 px buttons set it. The two-line text stack now sits about 2 px higher, since its box includes the room below the baseline.

A smaller line height isn't enough. I rendered every shipped locale's header titles at each candidate. leading-tight still clips Thai, Arabic, Hindi, and some Latin accented capitals, and leading-snug still clips Thai and Arabic by about 1 px. leading-normal leaves nothing visible outside the box. Since the title box now starts right under the eyebrow, I also checked that marks above a title don't run into marks below a translated eyebrow. Across eight locales, at default, large, and x-large text and at 320 px, none touch.

Other web elements combine truncate or line-clamp with leading-tight. I haven't confirmed that any of them visibly clips, so they aren't part of this change.

Validation

  • Reproduced on dev deployments built from main (66b836f) and from this branch, at 393 px. On main, "Backups", "Settings", and "Client Diagnostics" each lose 2 to 2.3 px of their descenders. On this branch, nothing is clipped, and "Client Diagnostics" still truncates with an ellipsis at 320 px.
  • Also checked at 834 px and 1023 px, at the x-large text size, and with Thai, Vietnamese, Arabic (right to left), and Japanese titles. At desktop widths nothing changes, because the header is hidden at 1024 px and above.
  • Web lint, format check, typecheck and build, and the bundle budget pass. make test-web on Node 24 passes (303 files, 3050 tests).
  • No test added. This is a class change, and the before-and-after captures are the check.

Evidence

Evidence: https://evidence.siloserver.org/r/silo-server/admin-mobile-header-descenders/

Risks

None identified. The change is limited to the class list of one element in the web admin shell, shown below 1024 px.

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

Background adversarial review of the head commit:

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

Visual review: 2 rounds, captures from d9974aa

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

Follow-up: Sol found that the Thai Plugins title still loses 1 px off the top of its tone mark when the UI font hasn't loaded. That clipping was worse before this change and is tracked in #4676, to follow this PR. Gemini noted that the header's sticky top-0 never pins, because the admin root wrapper's overflow-x-hidden makes it a scroll container. That was already the case before this change, and it's being fixed separately.

Fixed: captures taken while the navigation drawer was still closing were retaken. Answered: the Thai tone mark sits close to the eyebrow but doesn't touch it at any text size, and the 2 px rise of the text stack was kept.

AI Disclosure

  • Harness: Claude Code in T3 Code
  • Tool(s): Claude Code
  • Model(s): claude-opus-5-5; reviewers gpt-6.2-sol, claude-opus-5-5, gemini-4-neon
  • Involvement: Fully AI-generated, human verified
  • Adversarial review: A multi-agent code review of the diff found no defects. The plan review was skipped because the fix is a one-line class change, and a simplify pass changed nothing. The visual and background reviews are under Council review.

🤖 Generated with Claude Code

Note

Fix descender clipping in phone admin header title in AdminLayoutContent

Changes the mobile header title span in AdminLayout.tsx from tight line height plus top margin to normal line height with no margin. Tight leading clipped descenders and accents when the title truncated. A comment now documents this.

Macroscope summarized d9974aa.

The title in the sticky phone admin header used truncate with
leading-none. truncate clips to the line box, and a 1em line box ends
1px below the baseline, so the bottom of "p", "g", and accented or
non-Latin glyphs was sliced flat.

Give the title leading-normal and drop its top margin. The taller line
box holds descenders and accents in every shipped locale, its extra
half-leading takes the margin's place, and long titles still end in an
ellipsis.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@silo-triage silo-triage Bot added the size/S 0–49 added + deleted lines (all files); change volume, not priority. label Nov 20, 2026
@coderabbitai

coderabbitai Bot commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

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

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Next included review available in 3 minutes.

Check out review usage here.

View limit details

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

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 1ff3ad4f-672c-46bf-98bd-7d3a0164f511
Commits

Reviewing files that changed from the base of the PR and between 66b836f and d9974aa.

Files selected for processing: 1

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

@silo-kody

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

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 20, 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-20T22:14:32.270839Z d9974aa PR opened
🔒 Security Review ✅ Completed 2026-11-20T22:15:58.205081Z d9974aa PR opened
ℹ️ 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-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 20, 2026

@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 (gpt-6.2-sol, reviewed d9974aa)

AI-assisted review by gpt-6.2-sol using the Codex harness in T3 Code.

Comment thread web/src/components/AdminLayout.tsx Resolved
@Quick104
Quick104 merged commit faa2509 into main Nov 20, 2026
23 checks passed
@Quick104
Quick104 deleted the fix/admin-mobile-header-descenders branch November 20, 2026 22:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working impact: polish Annoyance, cosmetic, or nice-to-have priority: P2 Limited scope, workaround exists, or polish size/S 0–49 added + deleted lines (all files); change volume, not priority.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant