Open images in a modal

This commit is contained in:
Jon Staab
2024-10-17 15:02:03 -07:00
parent 4683fc4203
commit 13bb2f80a8
6 changed files with 29 additions and 13 deletions
+2 -2
View File
@@ -20,13 +20,13 @@
<svelte:window on:keydown={onKeyDown} />
{#if hashIsValid && modal?.options?.drawer}
<Drawer onClose={clearModals}>
<Drawer onClose={clearModals} {...modal.options}>
{#key modal.id}
<svelte:component this={modal.component} {...modal.props} />
{/key}
</Drawer>
{:else if hashIsValid && modal}
<Dialog onClose={clearModals}>
<Dialog onClose={clearModals} {...modal.options}>
{#key modal.id}
<svelte:component this={modal.component} {...modal.props} />
{/key}