fix(layout): wrap static-page sections in a full-width scroll container #47

Merged
nrupard merged 1 commit from fix/scroll-wrapper-not-section into main 2026-05-06 17:38:06 +02:00
Owner
  • The previous fix put flex-1 overflow-y-auto on the same <section> that already had max-w-2xl/max-w-4xl. The scrollbar then rendered at the section's right edge, leaving a wide empty band between the scrollbar and the actual right edge of <main> - on widescreen the page felt cropped well short of the viewport.
  • Move the scroll container out one level: <div class="flex-1 overflow-y-auto"> becomes the flex item that fills <main>, and the original <section> keeps its max-w-* cap as a normal block child. The scrollbar now sits at the right edge of <main> (i.e. against the viewport edge), and the content remains capped to the section's max-width.
  • Same wrapper applied to enclave landing/settings, discover, home, invitations, and settings pages.

Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com

- The previous fix put `flex-1 overflow-y-auto` on the same `<section>` that already had `max-w-2xl`/`max-w-4xl`. The scrollbar then rendered at the section's right edge, leaving a wide empty band between the scrollbar and the actual right edge of `<main>` - on widescreen the page felt cropped well short of the viewport. - Move the scroll container out one level: `<div class="flex-1 overflow-y-auto">` becomes the flex item that fills `<main>`, and the original `<section>` keeps its `max-w-*` cap as a normal block child. The scrollbar now sits at the right edge of `<main>` (i.e. against the viewport edge), and the content remains capped to the section's max-width. - Same wrapper applied to enclave landing/settings, discover, home, invitations, and settings pages. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
- The previous fix put `flex-1 overflow-y-auto` on the same `<section>` that already had `max-w-2xl`/`max-w-4xl`. The scrollbar then rendered at the section's right edge, leaving a wide empty band between the scrollbar and the actual right edge of `<main>` - on widescreen the page felt cropped well short of the viewport.
- Move the scroll container out one level: `<div class="flex-1 overflow-y-auto">` becomes the flex item that fills `<main>`, and the original `<section>` keeps its `max-w-*` cap as a normal block child. The scrollbar now sits at the right edge of `<main>` (i.e. against the viewport edge), and the content remains capped to the section's max-width.
- Same wrapper applied to enclave landing/settings, discover, home, invitations, and settings pages.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
nrupard deleted branch fix/scroll-wrapper-not-section 2026-05-06 17:38:06 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
psa-systems/lets-chat!47
No description provided.