feat: folder menu

This commit is contained in:
Timothy J. Baek
2024-10-17 00:17:50 -07:00
parent b402061546
commit 3578c85e39
8 changed files with 123 additions and 32 deletions

View File

@@ -14,6 +14,8 @@
export let className = '';
export let buttonClassName = 'w-fit';
export let title = null;
export let disabled = false;
</script>
<div class={className}>
@@ -47,7 +49,7 @@
</div>
{/if}
{#if open}
{#if open && !disabled}
<div transition:slide={{ duration: 300, easing: quintOut, axis: 'y' }}>
<slot name="content" />
</div>

View File

@@ -22,7 +22,7 @@
<slot name="content">
<DropdownMenu.Content
class="w-full max-w-[130px] rounded-lg px-1 py-1.5 border border-gray-700 z-50 bg-gray-850 text-white"
class="w-full max-w-[130px] rounded-lg px-1 py-1.5 border border-gray-900 z-50 bg-gray-850 text-white"
sideOffset={8}
side="bottom"
align="start"