Skip to content

Commit cb875fa

Browse files
DylanMerigaudclaude
andcommitted
Fix content overflowing the viewport (footer change regression)
The previous commit put the screen-tall wrapper (lg:h-screen) inside a <main> that still carried top/bottom padding, so the box was 100vh PLUS the padding and the dashboard content (Recent runs) spilled past the bottom edge. Move the padding inside the wrapper and size it to lg:h-dvh so the box is exactly the visible viewport (padding included): content fills it without overflowing, and only the footer sits below the fold. Verified content fits at 720/800/900/1300px tall. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent bef6f05 commit cb875fa

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

app/page.tsx

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,14 @@ export default async function Page() {
2929
}
3030

3131
return (
32-
<main className="mx-auto max-w-[1240px] px-4 pb-3 pt-7 sm:px-8 sm:pt-9">
33-
{/* The app proper is exactly viewport-tall on desktop (a flex column) so there
34-
is ONE scroll context inside the panels, not a competing page scroll. The
35-
footer lives OUTSIDE this budget — it sits just past the fold and only shows
36-
when you scroll down, giving the content the full screen height. On mobile
37-
everything falls back to natural height + normal page scroll. */}
38-
<div className="flex flex-col lg:h-screen lg:pb-5">
32+
<main className="mx-auto max-w-[1240px] px-4 sm:px-8">
33+
{/* The app proper fills EXACTLY the viewport on desktop (a flex column sized to
34+
the dynamic viewport height, padding included) so the content never overflows
35+
the screen and there is one scroll context inside the panels. The footer lives
36+
just BELOW this box — off the bottom edge — so it only appears when you scroll
37+
down, giving the content the full screen. On mobile it all falls back to
38+
natural height + normal page scroll. */}
39+
<div className="flex flex-col pb-3 pt-7 sm:pt-9 lg:h-dvh lg:pb-5">
3940
<Header />
4041
<div className="min-h-0 flex-1">
4142
{dbError ? (

0 commit comments

Comments
 (0)