better toast on cms
This commit is contained in:
parent
beec58ae63
commit
96278333b7
1 changed files with 18 additions and 10 deletions
|
|
@ -444,19 +444,27 @@
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{#if message || error}
|
||||||
|
<div
|
||||||
|
class="fixed right-6 bottom-6 z-50 flex max-w-sm flex-col gap-2"
|
||||||
|
role="status"
|
||||||
|
aria-live="polite"
|
||||||
|
>
|
||||||
{#if message}
|
{#if message}
|
||||||
<div
|
<div
|
||||||
class="mt-6 rounded-[10px] bg-green-600/10 px-4 py-3 text-sm text-green-600 dark:text-green-400"
|
class="rounded-[10px] bg-green-600 px-4 py-3 text-sm font-medium text-white shadow-lg"
|
||||||
>
|
>
|
||||||
{message}
|
{message}
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
{#if error}
|
{#if error}
|
||||||
<div
|
<div
|
||||||
class="mt-6 rounded-[10px] bg-red-600/10 px-4 py-3 text-sm text-red-600 dark:text-red-400"
|
class="rounded-[10px] bg-red-600 px-4 py-3 text-sm font-medium text-white shadow-lg"
|
||||||
>
|
>
|
||||||
{error}
|
{error}
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
|
</div>
|
||||||
|
{/if}
|
||||||
{/if}
|
{/if}
|
||||||
</main>
|
</main>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue