Skip to content

Commit 3dc843e

Browse files
committed
feat: update layouts
1 parent 085be56 commit 3dc843e

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

src/app/(protected)/layout.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,9 @@ export default function ProtectedLayout({ children }: { children: ReactNode }) {
1616

1717
return (
1818
<Providers endpointURL={endpointURL} token={token}>
19-
<div className="sticky inset-x-0 top-0 z-50 bg-background">
20-
<Header />
21-
</div>
19+
<Header />
2220

23-
<section className="p-2 sm:p-4">{children}</section>
21+
<section className="flex-1 overflow-y-auto p-2 sm:p-4">{children}</section>
2422
</Providers>
2523
)
2624
}

src/app/layout.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,7 @@ export default async function RootLayout({ children }: { children: ReactNode })
4141
<Providers>
4242
<Bootstrap>
4343
<main
44-
className={cn(
45-
'relative mx-auto box-border flex h-screen w-full min-w-sm max-w-screen-xl flex-1 flex-col overflow-y-auto pb-12'
46-
)}
44+
className={cn('mx-auto box-border flex h-screen w-full min-w-sm max-w-screen-xl flex-1 flex-col pb-12')}
4745
>
4846
{children}
4947
</main>

0 commit comments

Comments
 (0)