Skip to content

Commit d2202ff

Browse files
committed
updated layout, used flex-grow and flex-col for sticking the footer to bottom of screen
1 parent 351d927 commit d2202ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/(app)/layout.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,13 @@ export default async function RootLayout({
7878
: null;
7979

8080
return (
81-
<div className="grid min-h-screen grid-rows-[auto_1fr_auto]">
81+
<div className="flex flex-col min-h-screen">
8282
<Nav
8383
session={session}
8484
algoliaSearchConfig={algoliaSearchConfig}
8585
username={userData?.username || null}
8686
/>
87-
<main className="w-full relative mx-auto max-w-2xl bg-neutral-100 dark:bg-black sm:mx-auto">
87+
<main className="flex-grow w-full relative mx-auto max-w-2xl bg-neutral-100 dark:bg-black sm:mx-auto">
8888
{children}
8989
</main>
9090
<Footer />

0 commit comments

Comments
 (0)