Skip to content

Commit e689fc6

Browse files
committed
fix(status): pin header and footer, scroll only main content
1 parent 3b02d79 commit e689fc6

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

apps/dashboard/app/status/[slug]/layout.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,16 @@ export default function StatusLayout({
2323
return (
2424
<ThemeProvider attribute="class" defaultTheme="system" enableSystem>
2525
<TooltipProvider>
26-
<div className="flex h-full flex-col overflow-y-auto bg-background">
26+
<div className="flex h-full flex-col overflow-hidden bg-background">
2727
<StatusNavbar />
2828

29-
<main className="flex-1">
29+
<main className="min-h-0 flex-1 overflow-y-auto overscroll-contain">
3030
<div className="mx-auto max-w-2xl px-4 py-8 sm:px-6">
3131
{children}
3232
</div>
3333
</main>
3434

35-
<footer className="border-t">
35+
<footer className="shrink-0 border-t">
3636
<div className="mx-auto flex max-w-2xl items-center justify-between px-4 py-4 sm:px-6">
3737
<p className="text-muted-foreground text-xs">
3838
Powered by{" "}

0 commit comments

Comments
 (0)