From 0a28166e087ad6231abaff47768b595f072fc85c Mon Sep 17 00:00:00 2001 From: MuslemRahimi Date: Wed, 25 Sep 2024 22:36:10 +0200 Subject: [PATCH] ui fix --- src/lib/components/ShareHolders.svelte | 13 +++++++------ src/lib/components/TARating.svelte | 2 +- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/lib/components/ShareHolders.svelte b/src/lib/components/ShareHolders.svelte index df689230..891a9379 100644 --- a/src/lib/components/ShareHolders.svelte +++ b/src/lib/components/ShareHolders.svelte @@ -3,7 +3,6 @@ import { Chart } from 'svelte-echarts' import { shareholderComponent, stockTicker, getCache, setCache, displayCompanyName} from '$lib/store'; import { formatString } from '$lib/utils'; -import { goto } from '$app/navigation'; import { abbreviateNumber } from '$lib/utils'; import InfoModal from '$lib/components/InfoModal.svelte'; @@ -335,7 +334,7 @@ let charNumber = 30; Institute - Ownership + Ownership Shares Market Value Portfolio @@ -344,13 +343,15 @@ let charNumber = 30; {#each (showFullStats ? shareholderList?.slice(0,10) : shareholderList?.slice(0,3)) as item,index} {#if item?.investorName?.length > 0} - goto('/hedge-funds/'+item?.cik)} class="border-y border-gray-800 odd:bg-[#27272A] {index === 2 && !showFullStats && shareholderList?.length > 3 ? 'opacity-[0.5]' : '' } sm:hover:bg-[#245073] sm:hover:bg-opacity-[0.2] bg-[#09090B] border-b-[#09090B] cursor-pointer"> + - - {item?.investorName?.length > charNumber ? formatString(item?.investorName?.slice(0,charNumber)) + "..." : formatString(item?.investorName)} + + + {item?.investorName?.length > charNumber ? formatString(item?.investorName?.slice(0,charNumber)) + "..." : formatString(item?.investorName)} + - + {item?.ownership <= 0.01 ? "< 0.01%" : item?.ownership?.toFixed(2)+'%'} diff --git a/src/lib/components/TARating.svelte b/src/lib/components/TARating.svelte index 178d575a..5e57f82a 100644 --- a/src/lib/components/TARating.svelte +++ b/src/lib/components/TARating.svelte @@ -159,7 +159,7 @@ $: if ($assetType || $stockTicker || $etfTicker || $cryptoTicker) { {#each (showFullStats ? signalList : signalList?.slice(0, 3)) as item,index} - + {item?.name}