We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7e5c0f1 commit 05ec037Copy full SHA for 05ec037
1 file changed
src/lib/layout/notifications.svelte
@@ -1,5 +1,4 @@
1
<script lang="ts">
2
- import { flip } from 'svelte/animate';
3
import { fly } from 'svelte/transition';
4
import { Layout, Toast } from '@appwrite.io/pink-svelte';
5
import { dismissNotification, notifications } from '../stores/notifications';
@@ -9,7 +8,7 @@
9
8
<section>
10
<Layout.Stack gap="s">
11
{#each $notifications as notification (notification.id)}
12
- <span animate:flip={{ duration: 500 }} transition:fly|global={{ x: 50 }}>
+ <span transition:fly|global={{ x: 50 }}>
13
<Toast
14
isHtml={notification.isHtml}
15
title={notification.title}
@@ -38,6 +37,12 @@
38
37
top: calc(var(--main-header-height) + 12px);
39
}
40
+ span {
41
+ display: block;
42
+ width: fit-content;
43
+ margin-left: auto;
44
+ }
45
+
46
@media (min-width: 768px) {
47
section {
48
right: 24px;
0 commit comments