From 80300bf7669c89788797610782854055f7710cb7 Mon Sep 17 00:00:00 2001 From: wukko Date: Sun, 21 Jul 2024 13:41:14 +0600 Subject: [PATCH] web/dialogs: moved backdrop to dialog holder, improved animation --- web/src/components/dialog/DialogHolder.svelte | 29 ++++++++++---- web/src/components/dialog/SmallDialog.svelte | 40 +------------------ web/src/routes/+layout.svelte | 14 ++++++- 3 files changed, 36 insertions(+), 47 deletions(-) diff --git a/web/src/components/dialog/DialogHolder.svelte b/web/src/components/dialog/DialogHolder.svelte index 1f306c6b..da321138 100644 --- a/web/src/components/dialog/DialogHolder.svelte +++ b/web/src/components/dialog/DialogHolder.svelte @@ -2,10 +2,10 @@ import SmallDialog from "./SmallDialog.svelte"; import dialogs from "$lib/dialogs"; - $: dialogVisible = $dialogs.length > 0; + $: backdropVisible = $dialogs.length > 0; -
+
{#each $dialogs as dialog} {#if dialog.type === "small"} {/if} {/each} +
diff --git a/web/src/components/dialog/SmallDialog.svelte b/web/src/components/dialog/SmallDialog.svelte index a0cdbf71..ed575f9e 100644 --- a/web/src/components/dialog/SmallDialog.svelte +++ b/web/src/components/dialog/SmallDialog.svelte @@ -84,7 +84,7 @@
- +