diff --git a/app/layout.tsx b/app/layout.tsx index 654a725..48d8060 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -8,6 +8,11 @@ import StyledComponentsRegistry from '../lib/registry'; import Script from 'next/script'; import { Main } from '../components/common/main'; +const upadteScreenHeight = () => { + const vh = window.innerHeight * 0.01; + document.documentElement.style.setProperty("--vh", `${vh}px`); +} + export default function RootLayout({ children, }: { @@ -19,6 +24,11 @@ export default function RootLayout({ } }, []); + useEffect(() => { + upadteScreenHeight(); + window.addEventListener('resize', () => upadteScreenHeight()); + }, []); + return (
diff --git a/app/meister/page.tsx b/app/meister/page.tsx index 1c10165..e3749df 100644 --- a/app/meister/page.tsx +++ b/app/meister/page.tsx @@ -100,7 +100,7 @@ const MeisterPage = () => { return (