Fix bug with page going all the way to top, while toggling mobile navigation menu.

This commit is contained in:
Dorian Niemiec 2024-07-29 20:41:01 +02:00
parent 022fafd3fd
commit 2b24b774c4
2 changed files with 1 additions and 3 deletions

View file

@ -40,7 +40,7 @@ export default function PageLayout({
return ( return (
<main className="flex flex-col min-h-screen"> <main className="flex flex-col min-h-screen">
<Navbar /> <Navbar />
<div className="flex-grow flex-1">{children}</div> <div className="flex-grow flex-1 overflow-x-hidden">{children}</div>
<Footer /> <Footer />
</main> </main>
); );

View file

@ -6,12 +6,10 @@ html {
height: 100%; height: 100%;
width: 100%; width: 100%;
font-family: "Poppins", sans-serif; font-family: "Poppins", sans-serif;
overflow-x: hidden;
} }
body { body {
user-select: text; user-select: text;
overflow-x: clip;
} }
* { * {