Skip to content

Commit

Permalink
add overflow-y property to body tag to avoid layout shifts
Browse files Browse the repository at this point in the history
  • Loading branch information
hyundonmoon committed Nov 20, 2024
1 parent 70707a5 commit 0a31eba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/layouts/BaseLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const { pageTitle } = Astro.props;
/>
</head>

<body class="max-w-3xl w-full mx-auto my-0 px-4 py-16">
<body class="max-w-3xl w-full mx-auto my-0 px-4 py-16 overflow-y-scroll">
<Header />
<slot />
<Footer />
Expand Down

0 comments on commit 0a31eba

Please sign in to comment.