aboutsummaryrefslogtreecommitdiff
path: root/src/lib/Home/Root.svelte
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-10-09 00:41:20 -0700
committerFuwn <[email protected]>2024-10-09 00:41:43 -0700
commit998b63a35256ac985a5a2714dd1ca451af4dfd8a (patch)
tree50796121a9d5ab0330fdc5d7e098bda2860d9726 /src/lib/Home/Root.svelte
parentfeat(graphql): add badgeCount field (diff)
downloaddue.moe-998b63a35256ac985a5a2714dd1ca451af4dfd8a.tar.xz
due.moe-998b63a35256ac985a5a2714dd1ca451af4dfd8a.zip
chore(prettier): use spaces instead of tabs
Diffstat (limited to 'src/lib/Home/Root.svelte')
-rw-r--r--src/lib/Home/Root.svelte36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/lib/Home/Root.svelte b/src/lib/Home/Root.svelte
index d65a9832..bc1bdea9 100644
--- a/src/lib/Home/Root.svelte
+++ b/src/lib/Home/Root.svelte
@@ -1,26 +1,26 @@
<script lang="ts">
- import settings from '$stores/settings';
- import { fly } from 'svelte/transition';
+ import settings from '$stores/settings';
+ import { fly } from 'svelte/transition';
- export let data: any;
- export let way: number;
+ export let data: any;
+ export let way: number;
- const animationDelay = 100;
+ const animationDelay = 100;
</script>
{#if $settings.displayDisableAnimations}
- <slot />
+ <slot />
{:else}
- {#key data.url}
- <div
- in:fly={{
- x: way,
- duration: animationDelay,
- delay: animationDelay
- }}
- out:fly={{ x: -way, duration: animationDelay }}
- >
- <slot />
- </div>
- {/key}
+ {#key data.url}
+ <div
+ in:fly={{
+ x: way,
+ duration: animationDelay,
+ delay: animationDelay
+ }}
+ out:fly={{ x: -way, duration: animationDelay }}
+ >
+ <slot />
+ </div>
+ {/key}
{/if}