Skip to content

Commit 3127fc7

Browse files
committed
Footer fixed so now it will stay at bottom
1 parent a230615 commit 3127fc7

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

app/[locale]/(user)/layout.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ export default function Layout({ children }: UserLayoutProps) {
2020
}
2121

2222
return (
23-
<div className="flex h-full grow flex-col">
23+
<div className="flex min-h-screen flex-col">
2424
<header className="z-1 sticky top-0 bg-primaryBlue">
2525
<MainNav hideSearch={hideSearch} />
2626
</header>
27-
<>{children}</>
27+
<main className="grow">{children}</main>
2828
<footer>
2929
<MainFooter />
3030
</footer>

app/[locale]/dashboard/layout.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ interface DashboardLayoutProps {
1111

1212
export default function Layout({ children }: DashboardLayoutProps) {
1313
return (
14-
<div className="flex h-full grow flex-col">
14+
<div className="flex min-h-screen flex-col">
1515
<header className="sticky top-0 z-1 bg-primaryBlue">
1616
<MainNav />
1717
</header>
18-
<>{children}</>
18+
<main className="grow">{children}</main>
1919
<footer>
2020
<MainFooter />
2121
</footer>

0 commit comments

Comments
 (0)