Skip to content

Commit

Permalink
updated layout
Browse files Browse the repository at this point in the history
Added a main div and fixed classname so footer stays to the bottom
  • Loading branch information
Zaid-B24 committed Nov 7, 2024
1 parent 94401a6 commit 351d927
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions app/(app)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,16 @@ export default async function RootLayout({
: null;

return (
<>
<div className="grid min-h-screen grid-rows-[auto_1fr_auto]">
<Nav
session={session}
algoliaSearchConfig={algoliaSearchConfig}
username={userData?.username || null}
/>
{children}
<main className="w-full relative mx-auto max-w-2xl bg-neutral-100 dark:bg-black sm:mx-auto">
{children}
</main>
<Footer />
</>
</div>
);
}
4 changes: 2 additions & 2 deletions app/(app)/my-posts/_client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ const MyPosts = () => {
/>
)}
<div className="relative mx-4 max-w-2xl bg-neutral-100 dark:bg-black sm:mx-auto">
<div className="mb-4 mt-8">
<Tabs tabs={tabs} />
<div className="mb-4 mt-8">
<Tabs tabs={tabs} />
</div>
<div>
{selectedTabData.status === "loading" && (
Expand Down

0 comments on commit 351d927

Please sign in to comment.