fixed glass effect on navbar not showing up on mobile

This commit is contained in:
Bram Suurd
2024-05-18 23:30:29 +02:00
parent 58d51f7759
commit 57cc7ce021
2 changed files with 6 additions and 1 deletions

View File

@@ -62,4 +62,9 @@
::-webkit-scrollbar {
display: none;
}
.glass {
backdrop-filter: blur(15px) saturate(100%);
-webkit-backdrop-filter: blur(15px) saturate(100%);
}

View File

@@ -93,7 +93,7 @@ function Navbar() {
<>
<div
className={`fixed left-0 top-0 z-50 flex w-screen justify-center px-7 xl:px-0 ${
isScrolled ? "border-b backdrop-blur-lg" : ""
isScrolled ? "glass border-b bg-background/50" : ""
}`}
>
<div className="flex h-20 w-full max-w-7xl flex-row-reverse items-center justify-between sm:flex-row">