This commit is contained in:
2025-04-28 20:16:00 -03:00
parent 7a45d58fb8
commit aaf4c1e9ee
6 changed files with 37 additions and 9 deletions

View File

@@ -15,7 +15,7 @@ const { title } = Astro.props;
class="bg-lime-400 sticky top-0 z-10 py-3 drop-shadow shadow-sm"
x-data="{ open: false }"
x-on:keydown.esc.prevent.stop="open = false"
x-effect="document.documentElement.classList.toggle('overflow-hidden', open)"
x-effect="document.body.classList.toggle('overflow-hidden', open)"
>
<Container class="flex items-center">
<button