fix(portal-shell): same html/body overflow-y hidden shield as admin #177
Reference in New Issue
Block a user
Delete Branch "fix/portal-shell-overflow-shield"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Mirror of #176 onto
portal-shell. Same one-line shield, same rationale: the two apps share an identical:host { height: 100vh }+<main> overflow-y: autolayout, so the same defensivehtml, body { overflow-y: hidden }rule belongs on both surfaces. Brings the public-facing shell to the same posture as the admin one — any future layout escape stops at the shell boundary rather than producing a phantom body scrollbar plus an empty band below the footer.What lands
apps/portal-shell/src/styles.css:Same block as #176 with a comment that explicitly cross-references the admin shield so future contributors don't accidentally diverge the two apps.
Notes for the reviewer
<main>still scrolls).<main>is unaffected. The skip-link, sidebar, and footer all keep their pinned positions; long routes (the user list, future content pages) scroll inside<main>as designed.Test plan
pnpm nx build portal-shell— clean.pnpm nx test portal-shell— green.pnpm nx lint portal-shell— clean.pnpm nx run-many -t build test lint -p portal-shell,portal-admin— green (admin and shell share the build cache; touching only one file invalidates only the shell target).pnpm nx serve portal-shell:/frand/en, scroll long pages —<main>scrolls, body doesn't.What's next
Nothing pending on this shell-shield front. The two apps are now symmetric; if a third app appears (it won't in v1) the same pattern is documented in both
styles.cssheaders.