fix: toast

This commit is contained in:
Andras Bacsai 2022-11-03 09:43:23 +01:00
parent c6c037ff17
commit 56d4edfb9d
2 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@
on:focus={() => dispatch('pause')}
on:mouseout={() => dispatch('resume')}
on:blur={() => dispatch('resume')}
class={`flex flex-row alert shadow-lg text-white hover:scale-105 transition-all duration-100 cursor-pointer rounded ${success()}`}
class={` flex flex-row justify-center alert shadow-lg text-white hover:scale-105 transition-all duration-100 cursor-pointer rounded ${success()}`}
class:alert-error={type === 'error'}
class:alert-info={type === 'info'}
>

View File

@ -6,7 +6,7 @@
{#if $toasts.length > 0}
<section>
<article class="toast toast-top toast-end rounded-none px-10" role="alert">
<article class="toast toast-top toast-center rounded-none min-w-[18rem]" role="alert">
{#each $toasts as toast (toast.id)}
<Toast
type={toast.type}