Skip to content

Commit

Permalink
fix: make popover content browser only
Browse files Browse the repository at this point in the history
  • Loading branch information
paring-chan committed Mar 19, 2024
1 parent 97fb149 commit 93015a4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/lib/components/Popover.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,12 @@
const buttonRef: Action = (node) => {
button = node
}
const display = BROWSER ? 'block' : 'none'
</script>

<slot name="button" {buttonRef} />

<div bind:this={content} role="menu" style="width: {display};">
<slot />
</div>
{#if BROWSER}
<div bind:this={content} role="menu">
<slot />
</div>
{/if}

0 comments on commit 93015a4

Please sign in to comment.