Update FolderMenu.svelte

This commit is contained in:
Classic298 2025-06-21 22:01:06 +02:00 committed by GitHub
parent 02a4dec155
commit 14f6d0cc1f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -13,11 +13,6 @@
import Download from '$lib/components/icons/Download.svelte'; import Download from '$lib/components/icons/Download.svelte';
let show = false; let show = false;
const handleMenuTrigger = (event) => {
event.stopPropagation();
show = !show;
};
</script> </script>
<Dropdown <Dropdown
@ -28,11 +23,9 @@
} }
}} }}
> >
<div on:click={handleMenuTrigger} on:pointerup={handleMenuTrigger}> <Tooltip content={$i18n.t('More')}>
<Tooltip content={$i18n.t('More')}> <slot />
<slot /> </Tooltip>
</Tooltip>
</div>
<div slot="content"> <div slot="content">
<DropdownMenu.Content <DropdownMenu.Content