better toast on cms

This commit is contained in:
liyunze 2026-11-06 14:17:13 +08:00
parent beec58ae63
commit 96278333b7

View file

@ -444,18 +444,26 @@
</section> </section>
</div> </div>
{#if message} {#if message || error}
<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="fixed right-6 bottom-6 z-50 flex max-w-sm flex-col gap-2"
role="status"
aria-live="polite"
> >
{message} {#if message}
</div> <div
{/if} class="rounded-[10px] bg-green-600 px-4 py-3 text-sm font-medium text-white shadow-lg"
{#if error} >
<div {message}
class="mt-6 rounded-[10px] bg-red-600/10 px-4 py-3 text-sm text-red-600 dark:text-red-400" </div>
> {/if}
{error} {#if error}
<div
class="rounded-[10px] bg-red-600 px-4 py-3 text-sm font-medium text-white shadow-lg"
>
{error}
</div>
{/if}
</div> </div>
{/if} {/if}
{/if} {/if}