From c29d6137747ec2b5cefd71e5a683dcdbd604c740 Mon Sep 17 00:00:00 2001 From: MuslemRahimi Date: Sun, 11 Aug 2024 16:04:55 +0200 Subject: [PATCH] bugfixng watchlist --- src/lib/components/MiniPlot.svelte | 4 +- src/lib/components/WatchListCard.svelte | 54 ++++------ src/routes/+layout.svelte | 51 +-------- src/routes/analysts/+page.svelte | 44 ++++---- src/routes/analysts/[slug]/+page.svelte | 30 +++--- src/routes/economic-calendar/+page.svelte | 10 +- src/routes/market-mover/+page.svelte | 6 +- src/routes/stock-splits-calendar/+page.svelte | 100 ++++-------------- src/routes/watchlist/+page.svelte | 29 ++--- 9 files changed, 97 insertions(+), 231 deletions(-) diff --git a/src/lib/components/MiniPlot.svelte b/src/lib/components/MiniPlot.svelte index 1108aa12..771df4e6 100644 --- a/src/lib/components/MiniPlot.svelte +++ b/src/lib/components/MiniPlot.svelte @@ -15,11 +15,11 @@ const bottomLineColor = '#FF7070'; const bottomFillColor1 = 'rgba(239, 83, 80, 0.2)'; - let width = ($screenWidth <= 900 && $screenWidth > 700) ? 260 : ($screenWidth <= 700 && $screenWidth >=600 ) ? 200 : ($screenWidth < 600 && $screenWidth >=500 ) ? 150 : 80; + let width = ($screenWidth <= 1200 && $screenWidth > 900) ? 360 : ($screenWidth <= 900 && $screenWidth > 700) ? 260 : ($screenWidth <= 700 && $screenWidth >=600 ) ? 200 : ($screenWidth < 600 && $screenWidth >=500 ) ? 150 : 80; //Initial height of graph - let height = 50; + let height = $screenWidth < 640 ? 50 : 60; let observer; let ref; diff --git a/src/lib/components/WatchListCard.svelte b/src/lib/components/WatchListCard.svelte index e2752b45..8d6feff4 100644 --- a/src/lib/components/WatchListCard.svelte +++ b/src/lib/components/WatchListCard.svelte @@ -1,27 +1,14 @@