Repository navigation
fix(web): keep the phone admin header pinned while admin pages scroll - #4709
Conversation
Below 1024 px the admin header carries `sticky top-0`, but the shell's root wrapper used `overflow-x-hidden`, which makes the wrapper a scroll container that never scrolls, so the header scrolled away with the page. Below lg the wrapper now uses `overflow-x-clip` (as the main shell and #root do) with `flow-root` to keep the header's top margin inside it; from lg it keeps `overflow-x-hidden`, so desktop is unchanged. With the header pinned, in-page jump targets (Restore section chips, plugin config links, Skip to content) get `scroll-mt-24` below lg, and the dashboard's drag auto-scroll starts its top edge zone below the header, which now opts into `data-sticky-header`. 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 43 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. |
… edge zone The loop only learned the pointer's position from the grid's dragover, so after the pointer moved onto the pinned header or a side gutter it kept scrolling on the grid's last position. While it runs it now follows the pointer from the window and stops as soon as the pointer is out of the edge zones. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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:
|
Problem
Related issue: N/A
Validation tasks: none
Other clients: N/A (web admin layout only; the Apple, Android, and Roku apps have no web admin shell)
Below 1024 px wide, the web admin area shows a header bar with the menu, search, and server-activity buttons. It is meant to stay at the top of the screen while an admin page scrolls, but it scrolls away with the page, so on a phone or tablet an admin has to scroll back to the top to open the menu or search. This change keeps it pinned.
The admin shell's root wrapper used
overflow-x-hidden. That makes the browser computeoverflow-yasauto, so the wrapper becomes a scroll container that never scrolls itself (the document does), and the header'sposition: stickyholds to the wrapper instead of the viewport.Approach
lg, the wrapper usesoverflow-x-clip, as the main app shell and#rootalready do. It still clips sideways overflow but is not a scroll container, so the header sticks to the viewport.flow-rootkeeps the header's top margin inside the wrapper, whichoverflow-x-hiddenused to do; without it a lighter 12 px band showed above the header.lgup the wrapper keepsoverflow-x-hidden, so desktop behaves exactly as before. Usingclipat every width would also switch on thelg:stickyandxl:stickypanels on Activity, Backups → Restore, and Collections → Arrange, which have never stuck and need their own check.lg, two things that assumed it had scrolled away now allow for it:scroll-mt-24belowlg: Restore's section chips, a plugin's missing-config links, and Skip to content.data-sticky-headermarker, which the drag code now reads. While the auto-scroll runs it follows the pointer from the window, so it keeps going over the header and stops once the pointer leaves the edge zone off the grid.A root
scroll-padding-topwould have covered the jumps in one rule, but it makes the browser scroll the page up whenever a control in the pinned header gets focus, including when the drawer closes and returns focus to the menu button. The jump targets carry the margin instead, asBackupTablealready does.Validation
main(66b836f) in Chromium at 393 px and 834 px: after scrolling 1,200 px on the dashboard, Settings → General, and Logs, the header's top edge was at −1,188 px. With this change it stays at 0 on every page checked, at 1023 px, and in phone landscape.overflow: hidden/auto, as onmain.pnpm run lint,format:check,build, andbudget:checkpass.make test-web: 299 of 303 files pass; the other four (request.deadline,authCore.v2,client-context-v3,player-auth-refresh) fail the same way on a cleanmaincheckout on this machine's Node version and import nothing this change touches. No new tests: jsdom does not lay out sticky elements, so the live checks are the proof.Evidence
Evidence: https://evidence.siloserver.org/r/silo-server/admin-mobile-header-sticky/
Surface and build: web admin at phone (393 × 852), tablet (834 × 1194), 1023 px, phone landscape, and desktop (1024, 1280, 1440 px). Before on
mainat 66b836f; after on this branch's head; same data.Risks
lgup are the same as before.lg, the same as the main app's pinned phone header today: a control that takes keyboard focus while it already sits under the header stays hidden under it, and an Owner impersonating an admin account sees the impersonation banner over the header. Follow-ups [bug] A focused control can stay hidden under the pinned phone header #4713 and [bug] The impersonation banner covers the pinned phone header #4714 cover them.Follow-ups, each waiting for this to merge:
lg:stickyandxl:stickypanels (Activity's column header, Restore's summary, Arrange's preview) have never stuck; turning them on needs its own check against the fixed activity control and tall panels.The main app shell has the same 12 px top-margin band this change avoids in admin; a separate pull request will cover it.
Checklist
Council review
Plan round (one round, on the unfixed code): Sol (gpt-6.2-sol, xhigh) 6.5/10, Opus (claude-opus-5-5, high) 8/10, Gemini (gemini-4-neon, xhigh) 7.5/10. It changed the plan: desktop keeps
overflow-x-hidden(Sol), in-page jumps and the dashboard drag zone allow for the pinned header (all three), and the skip link and plugin config links were added to the jump targets (Opus, Gemini).Background review: 2 rounds, last reviewed 22175bb
Round 1's one finding (Sol: the drag auto-scroll kept scrolling after the pointer left the grid) is fixed in 22175bb and confirmed resolved in round 2; it couldn't be posted as a review because of a GitHub authentication error. Round 2, after the merge, found three small gaps in the dashboard drag lifecycle: a drag that lands straight on the pinned header doesn't start scrolling (from this change), and two that predate it (dragging out of the window keeps scrolling; a layout update mid-drag can leave the Add Widget sheet faded). A follow-up pull request will handle them.
Visual review: 2 rounds
Fixed: a lighter 12 px band above the header at the top of the page (
flow-root). Answered: text showing through the translucent header and the activity popover, the header moving up 12 px as it pins, and the focused skip link overlapping the header all match the main app's shared header and are outside this fix; the clipped title descenders were fixed separately in #4674.AI Disclosure
xhighon the final diff (three finders, a validation agent, and a sweep); its findings were the top-margin band, the focus and impersonation gaps listed under Risks, and comment fixes.🤖 Generated with Claude Code