ui fixes
This commit is contained in:
parent
912896fb39
commit
4da416afb2
@ -138,7 +138,9 @@
|
|||||||
>
|
>
|
||||||
{item?.title}
|
{item?.title}
|
||||||
<p class="text-white text-sm mt-2 font-normal">
|
<p class="text-white text-sm mt-2 font-normal">
|
||||||
{item?.text}
|
{item?.text?.length > 200
|
||||||
|
? item?.text?.slice(0, 200) + "..."
|
||||||
|
: item?.text}
|
||||||
</p>
|
</p>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -1,10 +1,9 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
|
import TickerInfoCard from "$lib/components/TickerInfoCard.svelte";
|
||||||
import TickerInfoCard from '$lib/components/TickerInfoCard.svelte';
|
import AnalystCard from "$lib/components/AnalystCard.svelte";
|
||||||
import AnalystCard from '$lib/components/AnalystCard.svelte';
|
|
||||||
//import ESGCard from '$lib/components/ESGCard.svelte';
|
//import ESGCard from '$lib/components/ESGCard.svelte';
|
||||||
import SimilarTickerCard from '$lib/components/SimilarTickerCard.svelte';
|
import SimilarTickerCard from "$lib/components/SimilarTickerCard.svelte";
|
||||||
import TopETFTickerHolder from '$lib/components/TopETFTickerHolder.svelte';
|
import TopETFTickerHolder from "$lib/components/TopETFTickerHolder.svelte";
|
||||||
|
|
||||||
export let data;
|
export let data;
|
||||||
export let stockDeck;
|
export let stockDeck;
|
||||||
@ -12,18 +11,11 @@ export let lastPrice;
|
|||||||
export let similarstock;
|
export let similarstock;
|
||||||
export let topETFHolder;
|
export let topETFHolder;
|
||||||
export let analystRating;
|
export let analystRating;
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<TickerInfoCard {data} {stockDeck} />
|
||||||
|
|
||||||
|
<AnalystCard {lastPrice} {analystRating} />
|
||||||
|
|
||||||
|
|
||||||
<TickerInfoCard data={data} stockDeck={stockDeck} />
|
|
||||||
|
|
||||||
|
|
||||||
<AnalystCard lastPrice={lastPrice} analystRating={analystRating} />
|
|
||||||
|
|
||||||
|
|
||||||
<!--<ESGCard stockDeck={stockDeck} />-->
|
<!--<ESGCard stockDeck={stockDeck} />-->
|
||||||
|
|
||||||
|
|||||||
@ -711,13 +711,6 @@
|
|||||||
defaultCondition: "over",
|
defaultCondition: "over",
|
||||||
defaultValue: "1%",
|
defaultValue: "1%",
|
||||||
},
|
},
|
||||||
annualPriceChange: {
|
|
||||||
label: "52-Week Price Change",
|
|
||||||
step: ["200%", "100%", "50%", "20%", "10%", "5%", "1%"],
|
|
||||||
|
|
||||||
defaultCondition: "over",
|
|
||||||
defaultValue: "1%",
|
|
||||||
},
|
|
||||||
var: {
|
var: {
|
||||||
label: "Value-at-Risk",
|
label: "Value-at-Risk",
|
||||||
step: ["-1%", "-5%", "-10%", "-15%", "-20%"],
|
step: ["-1%", "-5%", "-10%", "-15%", "-20%"],
|
||||||
|
|||||||
@ -366,10 +366,7 @@ function handleTypeOfTrade(state:string)
|
|||||||
<div
|
<div
|
||||||
class="flex-1 flex-shrink-0 flex flex-row items-center justify-between -mt-2"
|
class="flex-1 flex-shrink-0 flex flex-row items-center justify-between -mt-2"
|
||||||
>
|
>
|
||||||
<label
|
<a href="/" class="ml-2 cursor-pointer">
|
||||||
on:click={() => goto("/")}
|
|
||||||
class="ml-2 cursor-pointer"
|
|
||||||
>
|
|
||||||
<svg
|
<svg
|
||||||
class="w-5 h-5 inline-block"
|
class="w-5 h-5 inline-block"
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
@ -381,7 +378,7 @@ function handleTypeOfTrade(state:string)
|
|||||||
/></g
|
/></g
|
||||||
></svg
|
></svg
|
||||||
>
|
>
|
||||||
</label>
|
</a>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
class={!isScrolled
|
class={!isScrolled
|
||||||
@ -395,10 +392,7 @@ function handleTypeOfTrade(state:string)
|
|||||||
</span>
|
</span>
|
||||||
<span class="text-white font-medium text-sm">
|
<span class="text-white font-medium text-sm">
|
||||||
{#if $currentPortfolioPrice !== null && $currentPortfolioPrice !== 0}
|
{#if $currentPortfolioPrice !== null && $currentPortfolioPrice !== 0}
|
||||||
{$stockTicker?.includes(".DE") ||
|
{$currentPortfolioPrice}
|
||||||
$stockTicker?.includes(".F")
|
|
||||||
? `${$currentPortfolioPrice}€`
|
|
||||||
: ` $${$currentPortfolioPrice}`}
|
|
||||||
{:else}
|
{:else}
|
||||||
{data?.getStockQuote?.price}
|
{data?.getStockQuote?.price}
|
||||||
{/if}
|
{/if}
|
||||||
|
|||||||
@ -1497,7 +1497,6 @@
|
|||||||
<CommunitySentiment {communitySentiment} />
|
<CommunitySentiment {communitySentiment} />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{#if $screenWidth <= 1022}
|
|
||||||
<!--BUG: Dont remove since when changing ETF symbol display freezes-->
|
<!--BUG: Dont remove since when changing ETF symbol display freezes-->
|
||||||
|
|
||||||
<div class="w-full mt-10 m-auto sm:p-6 lg:hidden">
|
<div class="w-full mt-10 m-auto sm:p-6 lg:hidden">
|
||||||
@ -1512,7 +1511,6 @@
|
|||||||
{/await}
|
{/await}
|
||||||
</Lazy>
|
</Lazy>
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
|
||||||
|
|
||||||
<div
|
<div
|
||||||
class="w-full mt-10 sm:mt-0 m-auto sm:pl-6 sm:pb-6 sm:pt-6 {Object?.keys(
|
class="w-full mt-10 sm:mt-0 m-auto sm:pl-6 sm:pb-6 sm:pt-6 {Object?.keys(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user