Fixed navbar on smaller screens

- Fixed: navbar change width in firefox on phones
This commit is contained in:
Cyril Šebek 2024-07-08 21:31:43 +02:00
parent 8958494701
commit ed7add8ae0
Signed by: blboun3
SSH Key Fingerprint: SHA256:n9dMtOPzgsD+CCerUJslEnU2dzVanbaIv0XDQVRVjeg

View File

@ -15,7 +15,9 @@ const t = useTranslations(lang)
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content={description} />
<meta name="generator" content={Astro.generator} />
<link rel="shortcut icon" href={t("favicon")}>
<link rel="shortcut icon" href={t("favicon")} type="image/x-icon">
<title>{title}</title>
<ViewTransitions />
</head>
@ -23,8 +25,8 @@ const t = useTranslations(lang)
<script transition:persist is:raw is:inline>
document.addEventListener('astro:after-swap', () => {document.documentElement.setAttribute("data-theme", localStorage.getItem("data-theme") || document.documentElement.getAttribute("data-theme"));});
</script>
<Navbar transition:persist/>
<div class="bg-bkg h-dvh overflow-y-scroll snap-mandatory snap-y scroll-smooth " transition:animate="slide" style="scrollbar-width: thin;">
<Navbar/>
<div class="bg-bkg h-dvh overflow-y-scroll snap-mandatory snap-y scroll-smooth " transition:animate="fade" style="scrollbar-width: thin;">
<slot />
</div>
</body>