Skip to content

Commit 020405b

Browse files
authored
Add overflow-x-hidden and move dvh and dvw to HTML element. Fixes #60 (#61)
1 parent 61104a7 commit 020405b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/layouts/BaseLayout.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import '@styles/global.css';
66
const { description, title } = Astro.props;
77
---
88

9-
<html lang="en" class="dark min-h-dvh scroll-pt-16">
9+
<html lang="en" class="dark min-h-dvh w-dvw scroll-pt-16 overflow-x-hidden">
1010
<head>
1111
<meta charset="utf-8" />
1212
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
@@ -16,7 +16,7 @@ const { description, title } = Astro.props;
1616
<title>{title}</title>
1717
<slot name="head" />
1818
</head>
19-
<body class="flex flex-col items-center min-w-[100dvw] min-h-[100dvh]">
19+
<body class="flex flex-col items-center">
2020
<NavBar />
2121
<slot />
2222
<Footer />

0 commit comments

Comments
 (0)