impr: switch menus to attachment based vs cursed div wrapper
This commit is contained in:
20 files changed
+93
-93
No files matched your search
@@ -105,8 +105,9 @@
|
||||
href="/create"
|
||||
/>
|
||||
<Menu placement="bottom">
|
||||
{#snippet target()}
|
||||
{#snippet target(attachment)}
|
||||
<button
|
||||
{@attach attachment}
|
||||
class="w-10 h-10 rounded-full border-slate-200 dark:border-zinc-700
|
||||
transition-all bg-slate-50 dark:bg-zinc-900 relative
|
||||
hover:bg-slate-200 dark:hover:bg-zinc-700 group cursor-pointer"
|
||||
|
||||
@@ -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'
|
||||
|
||||
@@ -25,8 +25,9 @@
|
||||
</script>
|
||||
|
||||
<Menu placement="bottom">
|
||||
{#snippet target()}
|
||||
{#snippet target(attachment)}
|
||||
<Button
|
||||
{@attach attachment}
|
||||
color="tertiary"
|
||||
alignment="left"
|
||||
size="md"
|
||||
|
||||
@@ -83,8 +83,9 @@
|
||||
icon={Cog6Tooth}
|
||||
/>
|
||||
<Select bind:value={theme.colorScheme} size="sm">
|
||||
{#snippet target()}
|
||||
{#snippet target(attachment)}
|
||||
<SidebarButton
|
||||
{@attach attachment}
|
||||
label={$t('nav.menu.colorscheme.label')}
|
||||
icon={theme.colorScheme == 'system'
|
||||
? ComputerDesktop
|
||||
|
||||
Reference in new issue
Block a user