impr: switch menus to attachment based vs cursed div wrapper

This commit is contained in:
James Xylight committed 2025-08-28 21:18:43 -07:00
1 parent 078fdc2c71
commit 2891c68494
20 files changed
+93 -93

No files matched your search

+4 -2
View File
@@ -8,6 +8,8 @@
type Strategy,
} from '@floating-ui/core'
import Popover from '../popover/Popover.svelte'
import type { Snippet } from 'svelte'
import type { Attachment } from 'svelte/attachments'
interface Props {
openOnHover?: boolean
@@ -17,7 +19,7 @@
middleware?: Middleware[]
strategy?: Strategy
class?: string
target?: import('svelte').Snippet
target?: Snippet<[Attachment]>
children?: import('svelte').Snippet<[boolean]>
}
@@ -41,11 +43,11 @@
{middleware}
{strategy}
{manual}
{target}
{...rest}
bind:open
popoverClass="rounded-xl w-full backdrop-blur-md max-w-72"
class={clazz}
{target}
>
{#snippet popover()}
<div