mirror of
https://github.com/immich-app/immich.git
synced 2025-12-20 17:25:35 +03:00
26 lines
946 B
Svelte
26 lines
946 B
Svelte
<script lang="ts">
|
|
import Portal from '$lib/components/shared-components/portal/portal.svelte';
|
|
import { t } from 'svelte-i18n';
|
|
import { flip } from 'svelte/animate';
|
|
import { quintOut } from 'svelte/easing';
|
|
import { fade } from 'svelte/transition';
|
|
import { notificationController } from './notification';
|
|
import NotificationCard from './notification-card.svelte';
|
|
|
|
const { notificationList } = notificationController;
|
|
</script>
|
|
|
|
<Portal>
|
|
<div role="status" aria-relevant="additions" aria-label={$t('notifications')}>
|
|
{#if $notificationList.length > 0}
|
|
<section transition:fade={{ duration: 250 }} id="notification-list" class="fixed end-5 top-[80px]">
|
|
{#each $notificationList as notification (notification.id)}
|
|
<div animate:flip={{ duration: 250, easing: quintOut }}>
|
|
<NotificationCard {notification} />
|
|
</div>
|
|
{/each}
|
|
</section>
|
|
{/if}
|
|
</div>
|
|
</Portal>
|