mirror of
https://github.com/cupcakearmy/ora.git
synced 2026-04-02 12:05:23 +00:00
progress
This commit is contained in:
24
src/dashboard/components/Toasts.svelte
Normal file
24
src/dashboard/components/Toasts.svelte
Normal file
@@ -0,0 +1,24 @@
|
||||
<script>
|
||||
import { toasts } from '../toasts'
|
||||
import Toast from './Toast.svelte'
|
||||
</script>
|
||||
|
||||
<div class="wrapper">
|
||||
{#each $toasts as toast}
|
||||
<div class="mt-2">
|
||||
<Toast {toast} />
|
||||
</div>
|
||||
{/each}
|
||||
</div>
|
||||
|
||||
<style>
|
||||
.wrapper {
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
z-index: 100;
|
||||
padding: 1rem;
|
||||
display: flex;
|
||||
flex-direction: column-reverse;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user