Skip to content

Commit

Permalink
fix: overflow in root layout
Browse files Browse the repository at this point in the history
  • Loading branch information
iqbalpa committed Jul 20, 2024
1 parent e7ed50e commit cf9014c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ export default function RootLayout({
return (
<html lang="en">
<body
className={`${inter.className} max-w-screen relative max-h-screen bg-gray-800 text-slate-200`}
className={`${inter.className} flex max-h-screen flex-col bg-gray-800 text-slate-200`}
>
<Header />
<BackButton />
{children}
<main className="flex-1 overflow-auto">{children}</main>
<GoTopButton />
<BackButton />
</body>
</html>
);
Expand Down

0 comments on commit cf9014c

Please sign in to comment.