Skip to content

appShell mode, hide native scrollbars on html/body - #37

Merged
uiwwsw merged 1 commit into
mainfrom
feat/app-shell-scroll
Nov 26, 2026
Merged

uiwwsw merged 1 commit into
mainfrom
feat/app-shell-scroll

Conversation

@uiwwsw

@uiwwsw uiwwsw commented Nov 26, 2026

Copy link
Copy Markdown
Owner
  • appShell: provider fills the viewport, document never scrolls, only the content area or each page's scrollTarget scrolls. Implies container mode.
  • Native scrollbar hidden on <html> and <body> in window mode and appShell.
  • Demo: /with uses appShell; /without scrolls the whole document.

Verified: Chrome (content-only scroll 52–711px, drag 192px → 439 = expected, back restores 250), iOS Safari 27 simulator (only the drawn scrollbar shows while scrolling; tested with a red scrollbar color), and a fresh Next.js app installing the packed tarball, built by Vercel (temporary project, removed afterwards).
npm test 58 pass, check, demo next build.

🤖 Generated with Claude Code

appShell makes the provider fill the viewport and stops the document
from scrolling, so <html> and <body> never show a browser scrollbar and
only the content area (or each page's scrollTarget) scrolls. It implies
scrollMode="container"; header and footer stay optional.

Window mode and appShell now hide the native scrollbar on <body> as well
as <html> (scrollbar-width and ::-webkit-scrollbar), checked in Chrome
and iOS Safari 27 (simulator): only the drawn scrollbar appears.

Demo: /with uses appShell (fixed header and tab bar, content-only
scroll); /without scrolls the whole document like a plain Next.js page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
stackflow-next Ready Ready Preview Nov 26, 2026 2:07am UTC

@uiwwsw
uiwwsw merged commit 5f17166 into main Nov 26, 2026
4 checks passed
@uiwwsw
uiwwsw deleted the feat/app-shell-scroll branch November 26, 2026 02:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant