From 71107ede08effe3580ce35b0905fb4832ca50ee3 Mon Sep 17 00:00:00 2001 From: Jean Ribeiro Date: Thu, 23 May 2024 23:05:30 -0300 Subject: [PATCH 1/2] enhancement: uses VirtualList in notifications --- .../components/NotificationsButton.svelte | 34 +++++++++++++------ .../components/tiles/NotificationTile.svelte | 2 +- 2 files changed, 24 insertions(+), 12 deletions(-) diff --git a/packages/desktop/views/dashboard/components/NotificationsButton.svelte b/packages/desktop/views/dashboard/components/NotificationsButton.svelte index 6c9851f600..a30ef2748e 100644 --- a/packages/desktop/views/dashboard/components/NotificationsButton.svelte +++ b/packages/desktop/views/dashboard/components/NotificationsButton.svelte @@ -9,6 +9,7 @@ import { checkActiveProfileAuth } from '@core/profile/actions' import { activeAccounts } from '@core/profile/stores' import { NotificationTile } from '@ui' + import VirtualList from '@sveltejs/svelte-virtual-list' const TABS = [ { key: 'all', value: 'All' }, @@ -108,6 +109,7 @@ + {@const notificationHeight = 76}
- + + + + {:else if !isAtLeast1AccountRegistered}
{localize('views.dashboard.dappNotifications.notEnabledHint')} @@ -145,3 +151,9 @@ {/if}
+ + diff --git a/packages/shared/src/components/tiles/NotificationTile.svelte b/packages/shared/src/components/tiles/NotificationTile.svelte index 86f26d4ab3..0b9ac833e9 100644 --- a/packages/shared/src/components/tiles/NotificationTile.svelte +++ b/packages/shared/src/components/tiles/NotificationTile.svelte @@ -12,7 +12,7 @@ $: subscription = notificationsManager.getSubscriptionsForTopic(subscriptionTopic) - +
From f745f88b396c0acde40d56510ea0b2b50341382e Mon Sep 17 00:00:00 2001 From: Mark Nardi Date: Fri, 24 May 2024 11:16:02 +0200 Subject: [PATCH 2/2] fix merge issue --- .../views/dashboard/components/NotificationsButton.svelte | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/desktop/views/dashboard/components/NotificationsButton.svelte b/packages/desktop/views/dashboard/components/NotificationsButton.svelte index 461cbee0d8..28fe8a4192 100644 --- a/packages/desktop/views/dashboard/components/NotificationsButton.svelte +++ b/packages/desktop/views/dashboard/components/NotificationsButton.svelte @@ -120,6 +120,8 @@
+ {/if} + {#if notificationsToDisplay.length}