diff options
Diffstat (limited to 'src/routes/+layout.svelte')
| -rw-r--r-- | src/routes/+layout.svelte | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 91d22613..44a9de84 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -7,11 +7,11 @@ import { browser } from '$app/environment'; import HeadTitle from '$lib/HeadTitle.svelte'; import '../app.css'; - import { fly } from 'svelte/transition'; import { readable, type Readable } from 'svelte/store'; import { navigating } from '$app/stores'; import Notifications from 'svelte-notifications'; import Notification from '$lib/Notification/Notification.svelte'; + import Root from '$lib/Root.svelte'; export let data; @@ -28,7 +28,6 @@ return () => unsubscribe(); }); - const animationDelay = 100; $: way = data.url.includes('/user') ? 200 @@ -102,22 +101,7 @@ <p /> <Notifications item={Notification} zIndex={5000}> - {#if $settings.displayDisableAnimations} - <slot /> - {:else} - {#key data.url} - <div - in:fly={{ - x: way, - duration: animationDelay, - delay: animationDelay - }} - out:fly={{ x: -way, duration: animationDelay }} - > - <slot /> - </div> - {/key} - {/if} + <Root {data} {way}><slot /></Root> </Notifications> </div> |