Repository navigation
fix(web): show the page background above the phone header - #4754
Conversation
Below 1024 px the main app's phone header has a 12 px top margin. The shell wrapper uses overflow-x: clip, which doesn't start a new block formatting context, so that margin collapsed through the wrapper. The wrapper's background started 12 px down and the body's lighter ambient background showed in a band above the header until the page scrolled. flow-root keeps the margin inside the wrapper, as AdminLayout does. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Next included review available in 40 minutes. View limit details
|
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:
|
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. |
Problem
Related issue: N/A
Validation tasks: none
Other clients: N/A (web app shell only; the Apple, Android, and Roku apps don't use it)
Below 1024 px wide, every page in the main web app showed a lighter 12 px strip across the top of the screen, above the rounded phone header, until the page scrolled under the header. This change makes that strip show the page background, as the admin area does after #4709, and moves nothing else.
Approach
The phone header has a 12 px top margin. The shell's root wrapper uses
overflow-x-clip, which, unlikeoverflow-x-hidden, doesn't start a new block formatting context, so the header's margin collapsed through it: the wrapper and its background started 12 px down, and the body's lighter ambient gradient showed above it.flow-rooton the wrapper keeps the margin inside, the same fix #4709 makes in the admin shell. Elements stay where they were; the wrapper's background now reaches the top edge.Validation
main(0d649bd) in Chromium at 393 px and 834 px on eight pages (Home, Calendar, Movies library, a movie's detail page, Settings, Search, Requests, Collections): the shell started 12 px down, and the top strip measured rgb(32–41) against the page background's rgb(24,24,27). On this branch (2b04670) the shell starts at 0 and the strip matches the page background on all eight.--detail-header-height, and the inset ItemGrid uses for jump scrolling. At 1440 px the only difference is the wrapper's computeddisplay.display: block; that reproducesmain's capture pixel for pixel. Scrolled 300 px and Calendar's hidden and revealed header are pixel-identical before and after; the rest differ only in the top 12 px, and 1024 px is identical. The dev data's calendar week is too short to cross the hide threshold, so a temporary spacer made it scroll.pnpm run lint,format:check,build, andbudget:checkpass.make test-web: 3,024 tests pass; 29 fail in four files (request.deadline,client-context-v3,player-auth-refresh,authCore.v2) that fail the same way withmain'sLayout.tsxon this machine's Node version and don't import the shell. No new test: jsdom doesn't lay out margins, so the live measurements are the proof.Evidence
Evidence: https://evidence.siloserver.org/r/silo-server/app-shell-header-band/
Surface and build: main web app at phone (393 × 659), tablet (834 × 1194), and desktop (1440 × 900). Before on
mainat 0d649bd; after on this branch at 2b04670; same data.Risks
None identified.
flow-rootstops margins collapsing through the wrapper and contains floats; the shell has no floats, and the desktop layout measured the same on all eight pages checked.Checklist
Council review
Plan round: skipped. The fix is one class on the element that causes the band, the same class #4709 uses in the admin shell.
Visual review: 2 rounds, captures from 2b04670
Answered: a poster brightness difference on Home was image-loading timing (repeat captures are identical); the stuck header sitting at y = 0 is the same before and after; the after half of the top-strip crops is not shifted (the header border sits on the same row in both). Round 1's missing captures (scrolled pages, the drawer, artwork, the breakpoint, Calendar with content in view) were added in round 2. The other notes describe things that look the same before and after this change.
Adversarial review of the PR: round 1, reviewed 2b04670
AI Disclosure
highfound nothing; the simplify pass shortened the code comment. See Council review for the visual and adversarial reviews.🤖 Generated with Claude Code
Note
Fix page background rendering above the phone header in web
LayoutAdds
flow-rootto the shell wrapper class list in Layout.tsx. This makes the wrapper a flow root, so the phone header's top margin no longer collapses through it. The page background now shows above the header as intended.Macroscope summarized 2b04670.