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

+2 -4
View File
@@ -17,7 +17,6 @@
MenuButton,
MenuDivider,
modal,
Modal,
Option,
Select,
Spinner,
@@ -41,8 +40,6 @@
UserCircle,
UserGroup,
} from 'svelte-hero-icons'
let showInstance = $state(false)
</script>
{#snippet siteSnippet()}
@@ -140,8 +137,9 @@
<!--svelte-ignore a11y_no_static_element_interactions-->
<div onclick={e => e.stopPropagation()}>
<Select bind:value={theme.colorScheme} size="sm">
{#snippet target()}
{#snippet target(attachment)}
<MenuButton
{@attach attachment}
icon={theme.colorScheme == 'system'
? ComputerDesktop
: theme.colorScheme == 'light'