From 3e0aa296832ff1e3b39347b7658972caf84aaa1e Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Sun, 24 Mar 2024 15:43:03 -0700 Subject: [PATCH] refac: transition --- src/lib/components/common/Dropdown.svelte | 3 +++ src/lib/components/common/Modal.svelte | 6 ++++-- src/lib/components/layout/Sidebar.svelte | 3 ++- src/lib/components/layout/Sidebar/ChatMenu.svelte | 2 ++ 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/src/lib/components/common/Dropdown.svelte b/src/lib/components/common/Dropdown.svelte index 89d6b694..e8284a50 100644 --- a/src/lib/components/common/Dropdown.svelte +++ b/src/lib/components/common/Dropdown.svelte @@ -2,6 +2,8 @@ import { DropdownMenu } from 'bits-ui'; import { createEventDispatcher } from 'svelte'; + import { flyAndScale } from '$lib/utils/transitions'; + const dispatch = createEventDispatcher(); @@ -20,6 +22,7 @@ sideOffset={8} side="bottom" align="start" + transition={flyAndScale} >
Profile
diff --git a/src/lib/components/common/Modal.svelte b/src/lib/components/common/Modal.svelte index f223b823..038fa48d 100644 --- a/src/lib/components/common/Modal.svelte +++ b/src/lib/components/common/Modal.svelte @@ -2,6 +2,8 @@ import { onMount } from 'svelte'; import { fade } from 'svelte/transition'; + import { flyAndScale } from '$lib/utils/transitions'; + export let show = true; export let size = 'md'; @@ -41,10 +43,10 @@ }} >