diff --git a/src/lib/components/MiniPlot.svelte b/src/lib/components/MiniPlot.svelte index 771df4e6..496b80ba 100644 --- a/src/lib/components/MiniPlot.svelte +++ b/src/lib/components/MiniPlot.svelte @@ -15,7 +15,7 @@ const bottomLineColor = '#FF7070'; const bottomFillColor1 = 'rgba(239, 83, 80, 0.2)'; - let width = ($screenWidth <= 1200 && $screenWidth > 900) ? 360 : ($screenWidth <= 900 && $screenWidth > 700) ? 260 : ($screenWidth <= 700 && $screenWidth >=600 ) ? 200 : ($screenWidth < 600 && $screenWidth >=500 ) ? 150 : 80; + let width = $screenWidth < 640 ? 80 : $screenWidth < 1200 ? 150 : 180 //= ($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 @@ -129,7 +129,7 @@ function etfSelector() { $: { if(chart && typeof window !== 'undefined') { - chart?.timeScale()?.fitContent(); + chart?.timeScale()?.fitContent(); } } @@ -139,7 +139,7 @@ if(chart && typeof window !== 'undefined') -