Skip to content

fix(web): show the page background above the phone header - #4754

Merged
Quick104 merged 1 commit into
mainfrom
fix/app-shell-header-margin-band
Nov 21, 2026
Merged

Quick104 merged 1 commit into
mainfrom
fix/app-shell-header-margin-band

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 (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, unlike overflow-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-root on 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

  • Reproduced on a Silo dev deployment built from 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.
  • Nothing else moved. At 393, 834, and 1440 px on the same pages, these are the same before and after: the header's position at rest and once stuck, the content's position, page height and scroll extent, --detail-header-height, and the inset ItemGrid uses for jump scrolling. At 1440 px the only difference is the wrapper's computed display.
  • Scrolled pages, the open navigation drawer, a detail page with artwork, Calendar's hide-on-scroll header, and 1023 and 1024 px were compared too. The base build was no longer deployed for these, so the "before" side ran this branch with the wrapper forced back to display: block; that reproduces main'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, and budget:check pass. 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 with main's Layout.tsx on 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.
  • Not exercised: iOS Safari or a notched device (including overscroll at the top), phone landscape, and an Owner impersonating an account. Under impersonation, the 12 px gap between the banner and the header should now show the page background too, by the same mechanism.

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 main at 0d649bd; after on this branch at 2b04670; same data.

Risks

None identified. flow-root stops 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

  • 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

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

Member Round 1 Round 2
Sol better, 9/10 better, 9/10
Opus better, 8/10 better, 8/10
Gemini better, 8/10 unavailable (provider quota)

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

Member Round 1
Sol (gpt-6.2-sol, xhigh) 9/10, no findings
Opus (claude-opus-5-5, high) 9/10, no findings
Gemini (gemini-4-neon, xhigh) waiting for its provider quota to reset

AI Disclosure

  • Harness: Claude Code in T3 Code
  • Tool(s): Claude Code, T3 Code (delegated reviews), Codex, Antigravity, headless Chromium via Playwright (captures) against a Silo dev deployment
  • Model(s): claude-opus-5-5 (implementation and code review), claude-sonnet-5-5 (code-review subagents), gpt-6.2-sol, claude-opus-5-5, and gemini-4-neon (council)
  • Involvement: Fully AI-generated, human verified
  • Adversarial review: a multi-agent code review at high found 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 Layout

Adds flow-root to 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.

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]>
@silo-triage silo-triage Bot added the size/S 0–49 added + deleted lines (all files); change volume, not priority. label Nov 21, 2026
@coderabbitai

coderabbitai Bot commented Nov 21, 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 40 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: 9e2df55b-60ee-495d-9000-595c852617a6
Commits

Reviewing files that changed from the base of the PR and between e4677dd and 2b04670.

Files selected for processing: 1

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

@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 ❌

@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-21T01:47:16.471507Z 2b04670 PR opened
🔒 Security Review ✅ Completed 2026-11-21T01:48:37.584800Z 2b04670 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 21, 2026
@Quick104
Quick104 merged commit 6eb1980 into main Nov 21, 2026
19 checks passed
@Quick104
Quick104 deleted the fix/app-shell-header-margin-band branch November 21, 2026 01:52
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