Skip to content

Commit 2082de9

Browse files
committed
fix: nav panel is not blurred on chromium
1 parent a45a531 commit 2082de9

File tree

1 file changed

+22
-20
lines changed

1 file changed

+22
-20
lines changed

src/islands/svelte/hamburger-button.svelte

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,26 @@
1212
</div>
1313
</Popover.Trigger>
1414

15-
<Popover.Content align="end" side="bottom" strategy="fixed">
16-
<div
17-
transition:fade|global={{ duration: 70 }}
18-
class="absolute right-0 w-[100vw] bg-gray-50/70 lg:hidden"
19-
>
20-
<ul>
21-
{#each links as link}
22-
<li class="hover:bg-gray-100">
23-
<a
24-
href={link.href}
25-
class="block px-8 py-2"
26-
data-astro-prefetch="viewport"
27-
>
28-
{link.title}
29-
</a>
30-
</li>
31-
{/each}
32-
</ul>
33-
</div>
34-
</Popover.Content>
15+
<Popover.Portal>
16+
<Popover.Content align="end" side="bottom">
17+
<div
18+
transition:fade|global={{ duration: 70 }}
19+
class="absolute right-0 w-[100vw] bg-gray-50/70 backdrop-blur-lg lg:hidden"
20+
>
21+
<ul>
22+
{#each links as link}
23+
<li class="hover:bg-gray-100">
24+
<a
25+
href={link.href}
26+
class="block px-8 py-2"
27+
data-astro-prefetch="viewport"
28+
>
29+
{link.title}
30+
</a>
31+
</li>
32+
{/each}
33+
</ul>
34+
</div>
35+
</Popover.Content>
36+
</Popover.Portal>
3537
</Popover.Root>

0 commit comments

Comments
 (0)