Skip to content

Commit 05ec037

Browse files
committed
fix: notif.
1 parent 7e5c0f1 commit 05ec037

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/lib/layout/notifications.svelte

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<script lang="ts">
2-
import { flip } from 'svelte/animate';
32
import { fly } from 'svelte/transition';
43
import { Layout, Toast } from '@appwrite.io/pink-svelte';
54
import { dismissNotification, notifications } from '../stores/notifications';
@@ -9,7 +8,7 @@
98
<section>
109
<Layout.Stack gap="s">
1110
{#each $notifications as notification (notification.id)}
12-
<span animate:flip={{ duration: 500 }} transition:fly|global={{ x: 50 }}>
11+
<span transition:fly|global={{ x: 50 }}>
1312
<Toast
1413
isHtml={notification.isHtml}
1514
title={notification.title}
@@ -38,6 +37,12 @@
3837
top: calc(var(--main-header-height) + 12px);
3938
}
4039
40+
span {
41+
display: block;
42+
width: fit-content;
43+
margin-left: auto;
44+
}
45+
4146
@media (min-width: 768px) {
4247
section {
4348
right: 24px;

0 commit comments

Comments
 (0)