chore(toast): improve notifications

This commit is contained in:
Benjamin Canac
2022-07-21 00:39:06 +02:00
parent 487f253e14
commit 1ff9fd4f69
3 changed files with 64 additions and 54 deletions

View File

@@ -2,8 +2,7 @@
<div class="fixed bottom-0 right-0 flex flex-col justify-end w-full z-[55] sm:w-96">
<div v-if="notifications.length" class="px-4 py-6 space-y-3 overflow-y-auto sm:px-6">
<div
v-for="(notification, index) of notifications"
v-show="index === notifications.length - 1"
v-for="notification of notifications"
:key="notification.id"
>
<Notification