Skip to content

fix(hero): keep homepage hero within the visible viewport on mobile - #443

Merged
choffmann merged 1 commit into
mainfrom
fix/mobile-hero-viewport-height
Aug 19, 2026
Merged

fix(hero): keep homepage hero within the visible viewport on mobile#443
choffmann merged 1 commit into
mainfrom
fix/mobile-hero-viewport-height

Conversation

@choffmann

Copy link
Copy Markdown
Member

The hero used h-screen inside the wrapper that is offset by the voting banner height, so the section was always 100vh + banner tall and never fit on one screen. On mobile browsers vh also refers to the largest viewport, adding the address bar height on top. Long copy on narrow screens was additionally clipped by overflow-hidden.

Use a banner-aware min-height based on svh and w-full instead of w-screen. The front tree is slightly smaller on mobile so it stays fully visible below the copy now that the section is shorter.

The hero used h-screen inside the wrapper that is offset by the voting
banner height, so the section was always 100vh + banner tall and never
fit on one screen. On mobile browsers vh also refers to the largest
viewport, adding the address bar height on top. Long copy on narrow
screens was additionally clipped by overflow-hidden.

Use a banner-aware min-height based on svh and w-full instead of
w-screen. The front tree is slightly smaller on mobile so it stays fully
visible below the copy now that the section is shorter.
@choffmann choffmann self-assigned this Aug 19, 2026
@choffmann
choffmann merged commit 00f61c2 into main Aug 19, 2026
6 checks passed
@choffmann
choffmann deleted the fix/mobile-hero-viewport-height branch August 19, 2026 14:49
@green-ecolution green-ecolution Bot mentioned this pull request Aug 19, 2026
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