Skip to content

fix(web): land Skip to content below the phone header in the main app - #4784

Merged
Quick104 merged 1 commit into
mainfrom
fix/skip-link-clears-phone-header
Nov 21, 2026
Merged

Quick104 merged 1 commit into
mainfrom
fix/skip-link-clears-phone-header

Conversation

@Quick104

@Quick104 Quick104 commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Related issue: N/A
Validation tasks: none

Other clients: N/A (no client-visible change; the skip link and the pinned phone header exist only in the web app)

Below 1024 px, the web app's "Skip to content" link drops keyboard users at content the phone header hides. The header in the main (non-admin) shell stays pinned to the top while the page scrolls. Pressing Enter on the skip link scrolled the page so the content started at the top of the screen, under that header. The next Tab then focused a control the user couldn't see: the Movies library's Shuffle button sat at 21–53 px, fully behind the header (0–66 px). On Home at tablet width, the focused Personalize button was behind the header too.

On every page in this shell, the jump scrolled the page 78 px and put the content's top at 0. That happened whether the user pressed the skip link from the top of the page or after scrolling down.

Approach

Layout's <main id="main-content"> now has scroll-mt-24 lg:scroll-mt-0, the same classes AdminLayout's <main> got in #4709 for the admin shell's pinned header. Below lg, the skip link's jump stops 96 px short of the content. From the top of the page, that means the page doesn't move: the content stays just below the header, and focus moves to it. At lg and up the phone header is hidden, and the margin is 0, as before.

A scroll padding on html would also fix this jump. It would add to targets that already account for the header with their own scroll-mt-24 (admin pages, the backup and plugin pages), so they would end up offset twice.

Validation

  • Live, on a Silo dev deployment running clean main, with keyboard-only steps on Home and the Movies library at phone (393 px), tablet (834 px), and desktop (1440 px) size. Before the fix, the jump put the content under the header at phone and tablet size, and the next Tab focused a control behind it. After the fix, the content starts exactly where the header ends on every frame after Enter, and the next focused control is in view. Desktop and 1024 px are unchanged. At 1023 px the header shows, and the fix applies there too. I also reran the phone steps with this commit on current main, which includes fix(web): show the page background above the phone header #4754's change to the same shell wrapper, and got the same results.
  • Web lint (0 errors), format check, production build, and the bundle budget passed. make lint-changed passed, with no Go changes.
  • The web test suite has 29 failures, and the same 29 fail on the unfixed base. They're in request.deadline, authCore.v2, player-auth-refresh, and client-context-v3, all outside this change. No test was added: the fix is a scroll offset, and jsdom doesn't lay out the page.

Evidence

The evidence page has before and after captures at phone, tablet, and desktop size, including the next Tab after the jump. It also has recordings of the phone runs and the measured positions.

Evidence: https://evidence.siloserver.org/r/silo-server/pr-4784/

Risks

None identified. The margin changes only where the page stops when something scrolls #main-content into view, and in the app only the skip link does that.

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

Rounds: 1, last reviewed e4c5c6d

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

No member found anything to post. Opus noted that Layout already publishes the phone header's measured height as --detail-header-height, which could set this margin instead. The PR keeps AdminLayout's scroll-mt-24 so the two shells match and the content keeps a gap below the header.

Visual review: 2 rounds, captures from e4c5c6d

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

Fixed (in the evidence, not the code): round 1's scrolled captures carried hover states from the mouse pointer. The captures were retaken keyboard-only, with the next Tab after the jump, the Movies library as a second page, and the 1023/1024 px boundary added. Answered: the focused skip pill covering the logo, the Personalize button's focus ring, and the library tab bar running past the right edge at 393 px all look the same before and after. The tab bar is handled separately.

AI Disclosure

  • Harness: Claude Code, run from T3 Code
  • Tool(s): Claude Code subagents for the code review; Codex CLI and Antigravity for the cross-provider visual and background reviews; Playwright (headless Chromium) for the captures
  • Model(s): claude-opus-5-5 (implementation and review), claude-sonnet-5-5 (review subagents), gpt-6.2-sol and gemini-4-neon (visual and background reviews)
  • Involvement: Fully AI-generated. The agent verified it live on a dev sandbox; a person has not verified it yet.
  • Adversarial review: a high multi-agent code review of the diff found nothing to change. The plan round was skipped because the fix is a mechanical two-class change. See Council review for the visual review and the background review.

🤖 Generated with Claude Code

Below lg, the main app's phone header is pinned with `sticky top-0`, but
`<main id="main-content">` had no scroll margin, so the Skip to content
jump put the top of the page content under the header. Give it the same
`scroll-mt-24 lg:scroll-mt-0` that AdminLayout's main already carries.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@silo-triage silo-triage Bot added the size/S 0–49 added + deleted lines (all files); change volume, not priority. label Nov 21, 2026
@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-21T02:43:34.771897Z e4c5c6d PR opened
🔒 Security Review ✅ Completed 2026-11-21T02:45:38.958354Z e4c5c6d 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-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 ❌

@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 main content section now uses scroll-mt-24 by default and lg:scroll-mt-0 on desktop. Its comment documents the skip-link offset for the pinned phone header.

Changes: Skip-link offset

Layer / File(s) Summary
Main content scroll margin
web/src/components/Layout.tsx
The main content section gains responsive scroll-margin classes. Its comment documents the skip-link offset for the pinned phone header.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Bug fix

Possibly related issues

  • Issue 4713 — The change applies a scroll margin to the skip-link target, but does not add scroll-margin handling for focused controls.
  • Issue 4714 — The change adds a fixed scroll margin to the main content section, but does not account for the impersonation banner height.

Suggested reviewers: rhainland, blurbery

Merge Risk: Minimal · up to e4c5c

This adjusts the skip-to-content landing position below the pinned phone header on narrow screens and leaves desktop unchanged. The change is small, reversible, and follows an existing pattern, so merge risk is minimal.

Security architecture risk: Minimal · up to e4c5c

The change adjusts where keyboard skip-link navigation lands below the phone header. No introduced or worsened architecture-level security or failure-containment risk was identified.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: the Skip to content link now lands below the phone header in the main app. The raw summary confirms the change adds scroll-mt-24 lg:scroll-mt-0 to the main content ele…
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 is specific and related to the changeset. It explains that the skip-link jump in the main app puts content under the pinned phone header below 1024 px. It names the change to Layout's …
Full details: Title check

Explanation

The title names the main change: the Skip to content link now lands below the phone header in the main app. The raw summary confirms the change adds scroll-mt-24 lg:scroll-mt-0 to the main content element in Layout.tsx. The title uses the fix(web) prefix and is specific, so a teammate scanning history can see the primary change.

Full details: Description check

Explanation

The description is specific and related to the changeset. It explains that the skip-link jump in the main app puts content under the pinned phone header below 1024 px. It names the change to Layout's main element (scroll-mt-24 lg:scroll-mt-0), states why a global html scroll padding was rejected, and gives validation steps and evidence. The description matches the raw summary and the PR objectives.

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: 0b002d28-5364-4e8a-bbd3-720e628e10b3
Commits

Reviewing files that changed from the base of the PR and between 4b1713e and e4c5c6d.

Files selected for processing: 1

  • web/src/components/Layout.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.

@silo-triage silo-triage Bot added bug Something isn't working impact: usability Core flow broken or severely blocked priority: P2 Limited scope, workaround exists, or polish triaged High-confidence review completed; does not mean fixed, validated, or accepted for release. labels Nov 21, 2026
@Quick104
Quick104 merged commit e130f26 into main Nov 21, 2026
19 checks passed
@Quick104
Quick104 deleted the fix/skip-link-clears-phone-header branch November 21, 2026 02:57
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: usability Core flow broken or severely blocked priority: P2 Limited scope, workaround exists, or polish size/S 0–49 added + deleted lines (all files); change volume, not priority. triaged High-confidence review completed; does not mean fixed, validated, or accepted for release.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant