Fix app name, make toast dismissable

This commit is contained in:
Jon Staab
2024-11-18 15:58:40 -08:00
parent 50bf57772c
commit ae69da0be7
3 changed files with 9 additions and 4 deletions
+6 -1
View File
@@ -1,6 +1,8 @@
<script lang="ts">
import {fly} from "@lib/transition"
import {toast} from "@app/toast"
import Icon from "@lib/components/Icon.svelte"
import Button from "@lib/components/Button.svelte"
import {toast, popToast} from "@app/toast"
</script>
{#if $toast}
@@ -14,6 +16,9 @@
class:text-base-content={theme === "info"}
class:alert-error={theme === "error"}>
{$toast.message}
<Button class="flex items-center opacity-75" on:click={() => popToast($toast.id)}>
<Icon icon="close-circle" />
</Button>
</div>
{/key}
</div>