mirror of https://github.com/cupcakearmy/ora.git
25 lines
395 B
Svelte
25 lines
395 B
Svelte
<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>
|