mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-29 09:49:38 +02:00
chore: Update app version to v0.5.1 and fix toast component styling
This commit is contained in:
parent
25c6d3fce3
commit
a1094f805a
6 changed files with 117 additions and 72 deletions
|
@ -11,8 +11,25 @@
|
|||
|
||||
<div class="toast toast-top toast-end z-50 min-w-20">
|
||||
{#each toastList as { type, message, id, duration }}
|
||||
<div class="alert alert-{type}">
|
||||
<span>{message}</span>
|
||||
</div>
|
||||
{#if type == 'success'}
|
||||
<div class="alert alert-success">
|
||||
<span>{message}</span>
|
||||
</div>
|
||||
{/if}
|
||||
{#if type == 'error'}
|
||||
<div class="alert alert-error">
|
||||
<span>{message}</span>
|
||||
</div>
|
||||
{/if}
|
||||
{#if type == 'info'}
|
||||
<div class="alert alert-info">
|
||||
<span>{message}</span>
|
||||
</div>
|
||||
{/if}
|
||||
{#if type == 'warning'}
|
||||
<div class="alert alert-warning">
|
||||
<span>{message}</span>
|
||||
</div>
|
||||
{/if}
|
||||
{/each}
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue