misc: Tweak design

This commit is contained in:
Xyphyn committed 2023-07-19 15:36:01 -07:00
1 parent 42a429326a
commit 4c3b5fae6a
10 files changed
+65 -24

No files matched your search

+2 -2
View File
@@ -39,7 +39,7 @@
? ExclamationCircle
: ExclamationCircle}
/>
<div class="flex flex-col p-4 pl-0 mr-auto">
<div class="flex flex-col p-4 pl-0 break-words max-w-full">
{#if toast.title}
<h1 class="text-base font-bold">{toast.title}</h1>
{/if}
@@ -49,7 +49,7 @@
on:click={() => {
toasts.update((toasts) => toasts.filter((t) => t.id != toast.id))
}}
class="rounded-lg transition-colors hover:bg-slate-200 hover:dark:bg-zinc-800 p-2 m-2"
class="rounded-lg ml-auto w-max transition-colors hover:bg-slate-200 hover:dark:bg-zinc-800 p-2 m-2"
>
<Icon src={XMark} size="16" mini />
</button>
+1 -1
View File
@@ -1,7 +1,7 @@
import { writable } from 'svelte/store'
export enum ToastType {
'error' = 'bg-red-500 text-black border border-red-600',
'error' = 'bg-red-500 text-white border border-red-600',
'warning' = 'bg-yellow-400 text-black border border-yellow-500',
'success' = 'bg-green-400 text-black border border-green-500',
'info' = 'dark:bg-zinc-900 bg-white border border-slate-200 dark:border-zinc-800 shadow-lg',