misc: update mono ui

This commit is contained in:
Xylight committed 2024-09-30 18:06:44 -07:00
1 parent e284ae14ef
commit 8129275fa7
7 files changed
+202 -201

No files matched your search

+4 -3
View File
@@ -1,6 +1,6 @@
<script lang="ts">
import { Spinner } from '../index.js'
import { backOut } from 'svelte/easing'
import { backOut, expoOut } from 'svelte/easing'
import { type Toast, toasts, toastColors } from './toasts.js'
import {
InformationCircle,
@@ -19,11 +19,12 @@
<div
class="{toastColors[
toast.type
]} relative w-80 rounded-lg overflow-hidden flex flex-row items-center"
]} relative w-80 rounded-xl overflow-hidden flex flex-row items-center"
transition:fly={{
duration: 300,
duration: 600,
y: 8,
opacity: 0,
easing: expoOut,
}}
>
{#if toast.loading}
+13 -13
View File
@@ -1,21 +1,21 @@
<script lang="ts">
import Toast from './Toast.svelte'
import { flip } from 'svelte/animate'
import { toasts } from './toasts.js'
import { backInOut, backOut } from 'svelte/easing'
import Toast from './Toast.svelte'
import { flip } from 'svelte/animate'
import { toasts } from './toasts.js'
import { backInOut, backOut, expoOut } from 'svelte/easing'
</script>
<div
class="fixed right-0 bottom-0 flex flex-col items-end justify-end z-[200] p-4
class="fixed right-0 bottom-0 flex flex-col items-end justify-end z-[200] p-4
group overflow-hidden h-screen min-w-[24rem] pointer-events-none gap-4"
>
{#each $toasts as toast, index (toast.id)}
<div
animate:flip={{ duration: 500, easing: backOut }}
class="pointer-events-auto transition-all
{#each $toasts as toast, index (toast.id)}
<div
animate:flip={{ duration: 500, easing: expoOut }}
class="pointer-events-auto transition-all
duration-300"
>
<Toast {toast} />
</div>
{/each}
>
<Toast {toast} />
</div>
{/each}
</div>