From 3df8dad493fdec995bc76d2f8fbcc1e582ad5e76 Mon Sep 17 00:00:00 2001 From: Herr Seppia Date: Fri, 3 Jan 2025 18:01:57 +0100 Subject: [PATCH] explorer: fix owner key in provisioner page --- .../provisioners-list/ProvisionersList.svelte | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/explorer/src/lib/components/provisioners-list/ProvisionersList.svelte b/explorer/src/lib/components/provisioners-list/ProvisionersList.svelte index ec78f7a62..9c6d579a4 100644 --- a/explorer/src/lib/components/provisioners-list/ProvisionersList.svelte +++ b/explorer/src/lib/components/provisioners-list/ProvisionersList.svelte @@ -36,10 +36,14 @@ return () => resizeObserver.disconnect(); }); - $: provisionerKey = middleEllipsis( - data.key, - calculateAdaptiveCharCount(screenWidth, 320, 1024, 4, 25) + $: adaptiveCharCount = calculateAdaptiveCharCount( + screenWidth, + 320, + 1024, + 4, + 25 ); + $: provisionerKey = middleEllipsis(data.key, adaptiveCharCount); @@ -59,7 +63,7 @@