From 4fc771934019bc115c19616366e3559aa4072c6d Mon Sep 17 00:00:00 2001 From: MuslemRahimi Date: Tue, 27 Aug 2024 22:26:08 +0200 Subject: [PATCH] ui fix of tickerinfo card --- src/lib/components/TickerInfoCard.svelte | 42 +++++++++++++----------- 1 file changed, 22 insertions(+), 20 deletions(-) diff --git a/src/lib/components/TickerInfoCard.svelte b/src/lib/components/TickerInfoCard.svelte index 0aa5e965..91f43d99 100644 --- a/src/lib/components/TickerInfoCard.svelte +++ b/src/lib/components/TickerInfoCard.svelte @@ -110,7 +110,7 @@ $: { -
+

Company Info

@@ -118,21 +118,22 @@ $: { - + - - - + + + - - - + + + + - - - + + + {#if $screenWidth > 640} - - - + + + {/if} - - - + + + - - - + + +
CEO {ceoName}CountryCountry {country}
Market Cap{abbreviateNumber(data?.getStockQuote?.marketCap,true)}Volume{abbreviateNumber(data?.getStockQuote?.volume)}{abbreviateNumber(data?.getStockQuote?.marketCap,true)}Volume{abbreviateNumber(data?.getStockQuote?.volume)}
Beta{beta}Avg. Volume{abbreviateNumber(data?.getStockQuote?.avgVolume)}{beta?.toFixed(2)}Avg. Volume{abbreviateNumber(data?.getStockQuote?.avgVolume)}
Open{data?.getStockQuote?.open}Previous Close{data?.getStockQuote?.previousClose}{data?.getStockQuote?.open?.toFixed(2)}Previous Close{data?.getStockQuote?.previousClose?.toFixed(2)}
Day's Range{data?.getStockQuote?.dayLow} - {data?.getStockQuote?.dayHigh}52-Week Range{data?.getStockQuote?.yearLow} - {data?.getStockQuote?.yearHigh}{data?.getStockQuote?.dayLow?.toFixed(2)} - {data?.getStockQuote?.dayHigh?.toFixed(2)}52-Week Range{data?.getStockQuote?.yearLow?.toFixed(2)} - {data?.getStockQuote?.yearHigh?.toFixed(2)}
EPS (ttm){data?.getStockQuote?.eps}PE Ratio (ttm){data?.getStockQuote?.pe}{data?.getStockQuote?.eps}PE Ratio (ttm){data?.getStockQuote?.pe}
Shares Out.{abbreviateNumber(data?.getStockQuote?.sharesOutstanding)}Forward PE{forwardPE === undefined ? '-' : forwardPE}{abbreviateNumber(data?.getStockQuote?.sharesOutstanding)}Forward PE{forwardPE === undefined ? '-' : forwardPE}