From 4632ec6016fe8f094fbca71d235bad214979d135 Mon Sep 17 00:00:00 2001 From: MuslemRahimi Date: Sat, 22 Jun 2024 14:42:48 +0200 Subject: [PATCH] ui fix --- src/lib/components/MarketMaker.svelte | 668 +++++++++++++------------- 1 file changed, 334 insertions(+), 334 deletions(-) diff --git a/src/lib/components/MarketMaker.svelte b/src/lib/components/MarketMaker.svelte index aff8d78b..34834934 100644 --- a/src/lib/components/MarketMaker.svelte +++ b/src/lib/components/MarketMaker.svelte @@ -1,418 +1,418 @@ - - - - + + + +
-
- -
- - -
+
+ +
+ + +
- {#if data?.user?.tier === 'Pro'} - {#if isLoaded} + {#if data?.user?.tier === 'Pro'} + {#if isLoaded} - {#if historyData?.length !== 0} + {#if historyData?.length !== 0} -
-
- Over the past year, {$displayCompanyName} has seen a weekly average of - {abbreviateNumber(avgTradeCount)} trades, involving an average of - {abbreviateNumber(avgShareQuantity)} shares bought and sold. - This activity sums up to an average total notional value of - {abbreviateNumber(avgNotionalSum,true)}. -
-
+
+
+ Over the past year, {$displayCompanyName} has seen a weekly average of + {abbreviateNumber(avgTradeCount)} trades, involving an average of + {abbreviateNumber(avgShareQuantity)} shares bought and sold. + This activity sums up to an average total notional value of + {abbreviateNumber(avgNotionalSum,true)}. +
+
-
- - - -
- -
-
+
+ -
+ +
+ +
+
+ +
-
-
- - - - Notional Sum - -
-
- - - - Share Quantity - -
+
+
+ + + + Notional Sum + +
+
+ + + + Share Quantity + +
-
+
-

- Latest Information -

+

+ Latest Information +

-
- - - - - - - - - - - - - - - +
+
- Date - - {formatDateRange(historyData?.slice(-1)?.at(0)?.date)} -
- Total Notional Sum - - ${abbreviateNumber(historyData?.slice(-1)?.at(0)?.totalNotionalSum)} -
- Total Trade Count - - {abbreviateNumber(historyData?.slice(-1)?.at(0)?.totalWeeklyTradeCount)} -
+ + + + + + - -
- Total Share Quantity + Date + + {formatDateRange(historyData?.slice(-1)?.at(0)?.date)} +
+ Total Notional Sum - {abbreviateNumber(historyData?.slice(-1)?.at(0)?.totalWeeklyShareQuantity)} + ${abbreviateNumber(historyData?.slice(-1)?.at(0)?.totalNotionalSum)}
-
- - -

- Top 10 Market Makers Activity -

- These market makers represent the highest average trading activity for {$displayCompanyName} over the past 12 months, calculated on a weekly basis. - -
- - - - - - - - - - - {#each (showFullStats ? topMarketMakers?.slice(0,10) : topMarketMakers?.slice(0,3)) as item,index} - - - + - - - - - - - {/each} - -
NameTrade CountShare QuantityNotional Sum
- {item?.name?.length > charNumber ? formatString(item?.name?.slice(0,charNumber)) + "..." : formatString(item?.name)} +
+ Total Trade Count - {abbreviateNumber(item?.avgWeeklyTradeCount)} - - {abbreviateNumber(item?.avgWeeklyShareQuantity)} - - {abbreviateNumber(item?.avgNotionalSum, true)} + + {abbreviateNumber(historyData?.slice(-1)?.at(0)?.totalWeeklyTradeCount)}
- - -
- - - - - {/if} - - {:else} -
-
- -
+ + + Total Share Quantity + + + {abbreviateNumber(historyData?.slice(-1)?.at(0)?.totalWeeklyShareQuantity)} + + + +
- {/if} - {:else} -
- - Unlock content with Pro Subscription + +

+ Top 10 Market Makers Activity +

+ These market makers represent the highest average trading activity for {$displayCompanyName} over the past 12 months, calculated on a weekly basis. + +
+ + + + + + + + + + + {#each (showFullStats ? topMarketMakers?.slice(0,10) : topMarketMakers?.slice(0,3)) as item,index} + + + + + + + + + + + {/each} + +
NameTrade CountShare QuantityNotional Sum
+ {item?.name?.length > charNumber ? formatString(item?.name?.slice(0,charNumber)) + "..." : formatString(item?.name)} + + {abbreviateNumber(item?.avgWeeklyTradeCount)} + + {abbreviateNumber(item?.avgWeeklyShareQuantity)} + + {abbreviateNumber(item?.avgNotionalSum, true)} +
+ + +
+ + + + + {/if} + + {:else} +
+
+
- {/if} +
+ {/if} -
+ {:else} +
+ + Unlock content with Pro Subscription +
+ {/if} + +
@@ -428,7 +428,7 @@ max-width: 100%; /* Ensure chart width doesn't exceed the container */ @media (max-width: 640px) { .app { - height: 210px; + height: 210px; } }