Skip to content

Commit

Permalink
feat: update root layout
Browse files Browse the repository at this point in the history
  • Loading branch information
kunish committed Oct 24, 2023
1 parent 38570c1 commit 91de009
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 3 additions & 1 deletion src/app/(protected)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ export default function ProtectedLayout({ children }: { children: ReactNode }) {
<Providers token={token}>
<Header />

<section className="flex-1 overflow-y-auto p-2 sm:p-4">{children}</section>
<section className="flex-1 overflow-y-auto p-2 sm:p-4">
<div className="pb-12">{children}</div>
</section>
</Providers>
)
}
4 changes: 1 addition & 3 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,7 @@ export default async function RootLayout({ children }: { children: ReactNode })
<body>
<Providers>
<Bootstrap>
<main className={cn('min-w-sm mx-auto flex h-screen w-full max-w-screen-xl flex-1 flex-col pb-12')}>
{children}
</main>
<main className="min-w-sm mx-auto flex h-screen w-full max-w-screen-xl flex-1 flex-col">{children}</main>
</Bootstrap>
</Providers>
</body>
Expand Down

0 comments on commit 91de009

Please sign in to comment.