Merge pull request #2827 from appwrite/fix-notifications

Fix: notif animation
This commit is contained in:
Darshan
2026-02-04 11:48:02 +05:30
committed by GitHub
+1 -2
View File
@@ -1,5 +1,4 @@
<script lang="ts">
import { flip } from 'svelte/animate';
import { fly } from 'svelte/transition';
import { Layout, Toast } from '@appwrite.io/pink-svelte';
import { dismissNotification, notifications } from '../stores/notifications';
@@ -9,7 +8,7 @@
<section>
<Layout.Stack gap="s">
{#each $notifications as notification (notification.id)}
<span animate:flip={{ duration: 500 }} transition:fly|global={{ x: 50 }}>
<span transition:fly|global={{ x: 50 }}>
<Toast
isHtml={notification.isHtml}
title={notification.title}