improve routing menu

This commit is contained in:
vcoppe
2024-05-07 17:19:53 +02:00
parent 95d6993cfe
commit d35b702011
7 changed files with 169 additions and 52 deletions

View File

@@ -13,10 +13,18 @@
<div in:flyAndScale={{ x: -2, y: 0, duration: 100 }} class="translate-x-1 h-full">
<div class="rounded-md shadow-md pointer-events-auto">
<Card.Root class="border-none">
<Card.Content class="p-4 flex flex-col gap-4">
<Card.Content class="p-3 flex flex-col gap-3">
<slot />
</Card.Content>
</Card.Root>
</div>
</div>
{/if}
<svelte:window
on:keydown={(e) => {
if (active && e.key === 'Escape') {
currentTool.set(null);
}
}}
/>