diff --git a/packages/website/src/components/HomeHero.astro b/packages/website/src/components/HomeHero.astro index dea3e8bfc..6548c0071 100644 --- a/packages/website/src/components/HomeHero.astro +++ b/packages/website/src/components/HomeHero.astro @@ -133,7 +133,7 @@ const isBranchNamed = branchName !== undefined; BlitzKit { isBranchNamed && ( - + {branchName} ) @@ -141,7 +141,7 @@ const isBranchNamed = branchName !== undefined; - By TrèsAbhi ❤️ + By TrèsAbhi ❤️ diff --git a/packages/website/src/components/Navbar.astro b/packages/website/src/components/Navbar.astro index 8ffdbd758..dd8754eb5 100644 --- a/packages/website/src/components/Navbar.astro +++ b/packages/website/src/components/Navbar.astro @@ -33,22 +33,21 @@ const isBranchNamed = branchName !== undefined; height: var(--navbar-height); top: 0; z-index: 1; + position: sticky; } .expander { --navbar-height: 48px; - overflow: hidden; + /* overflow: hidden; */ transition-duration: 250ms; width: 100%; - /* overflow: hidden; */ backdrop-filter: blur(4rem) brightness(0.75); -webkit-backdrop-filter: blur(4rem) brightness(0.75); } .expander[data-expanded='false'] { - max-height: var(--navbar-height); - min-height: 0; + height: var(--navbar-height); } .expander[data-expanded='false'] *[data-expanded] { @@ -56,14 +55,18 @@ const isBranchNamed = branchName !== undefined; } .expander[data-expanded='true'] { - max-height: 200vh; - min-height: 100vh; + height: 100vh; } .expander[data-expanded='true'] *[data-closed] { display: none; } + .expander div[data-radix-scroll-area-viewport] { + overflow-y: scroll !important; + overscroll-behavior: contain; + } + .hamburger { display: inline-flex; } @@ -85,12 +88,6 @@ const isBranchNamed = branchName !== undefined; max-height: var(--navbar-height) !important; } } - - .scroll-area { - max-height: 200px; - height: 200px; - background-color: red; - }