Fixed navbar on smaller screens
- Fixed: navbar change width in firefox on phones
This commit is contained in:
parent
8958494701
commit
ed7add8ae0
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user