feature/tauri-v2
svelte 25 lines 713 Bytes
Raw
1 <script lang="ts">
2 import { toasts } from "./notifications";
3 import NotificationToast from "./NotificationToast.svelte";
4 </script>
5 <div id="notificationtoasts">
6 {#each $toasts as toast}
7 <NotificationToast id={toast.id} type={toast.type} title={toast.title} message={toast.message} actions={toast.actions} />
8 {/each}
9 </div>
10
11 <style lang="scss">
12 #notificationtoasts {
13 width: 25rem;
14 height: calc(100% - 2rem);
15 position: absolute;
16 bottom: 0;
17 padding: 10px 0;
18 right: 1rem;
19 box-sizing: border-box;
20 display: flex;
21 justify-content: flex-end;
22 flex-direction: column;
23 padding-bottom: 1.5rem;
24 }
25 </style>