fix: mobile navbar is not fixed to the screen

This commit is contained in:
Gustavo "Guz" L. de Mello
2024-06-03 15:27:08 -03:00
parent 6258431a9d
commit be54eea7a9

View File

@@ -41,7 +41,7 @@ templ Nav(links []Link) {
<span class="i-solar:hamburger-menu-broken w-2rem h-2rem block">Menu</span>
</button>
<nav
class={ "absolute pb-10 p-5 m-0 b-0 h-100vh bg-black/97 shadow-black shadow-2xl z-1 " +
class={ "fixed pb-10 p-5 m-0 b-0 h-100vh bg-black/97 shadow-black shadow-2xl z-1 " +
"animate slide-from-r fade-in overflow-hidden cannot-hover" }
style="inset: unset; bottom: 0; right: 0; --anim-duration: 300ms; --anim-slide-from-x: 50%;"
id="nav-popover"