Repository navigation
fix(web): land Skip to content below the phone header in the main app - #4784
Merged
Merged
Conversation
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]>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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 — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
Contributor
4 tasks done
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
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 hasscroll-mt-24 lg:scroll-mt-0, the same classesAdminLayout's<main>got in #4709 for the admin shell's pinned header. Belowlg, 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. Atlgand up the phone header is hidden, and the margin is 0, as before.A scroll padding on
htmlwould also fix this jump. It would add to targets that already account for the header with their ownscroll-mt-24(admin pages, the backup and plugin pages), so they would end up offset twice.Validation
make lint-changedpassed, with no Go changes.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-contentinto view, and in the app only the skip link does that.Checklist
Council review
Rounds: 1, last reviewed e4c5c6d
No member found anything to post. Opus noted that
Layoutalready publishes the phone header's measured height as--detail-header-height, which could set this margin instead. The PR keeps AdminLayout'sscroll-mt-24so the two shells match and the content keeps a gap below the header.Visual review: 2 rounds, captures from e4c5c6d
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
highmulti-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