refactor: edit html structure

This commit is contained in:
tglide
2023-03-14 16:07:06 +00:00
parent e07554c446
commit d3f4cb2dea
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -10,7 +10,7 @@
const dispatch = createEventDispatcher();
</script>
<li
<div
class="alert-sticky"
class:is-success={type === 'success'}
class:is-warning={type === 'warning'}
@@ -47,4 +47,4 @@
{/each}
</div>
{/if}
</li>
</div>
+2 -2
View File
@@ -8,7 +8,7 @@
<section>
<ul class="u-flex u-flex-vertical u-gap-16">
{#each $notifications as notification (notification.id)}
<div animate:flip={{ duration: 500 }}>
<li animate:flip={{ duration: 500 }}>
<Notification
type={notification.type}
title={notification.title}
@@ -16,7 +16,7 @@
buttons={notification?.buttons}>
{notification.message}
</Notification>
</div>
</li>
{/each}
</ul>
</section>