From e116a9b24dc7764cc7f22e1e3898064a0d85a27e Mon Sep 17 00:00:00 2001 From: MuslemRahimi Date: Sun, 23 Feb 2025 13:32:31 +0100 Subject: [PATCH] ui fix --- src/routes/stocks/[tickerID]/forecast/+page.svelte | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/routes/stocks/[tickerID]/forecast/+page.svelte b/src/routes/stocks/[tickerID]/forecast/+page.svelte index 002a81db..53992da9 100644 --- a/src/routes/stocks/[tickerID]/forecast/+page.svelte +++ b/src/routes/stocks/[tickerID]/forecast/+page.svelte @@ -420,7 +420,7 @@ animation: false, }, title: { - text: `
+ text: `

${$screenWidth && $screenWidth < 640 ? "Past Year" : "Past 12 Months"}

${$screenWidth && $screenWidth < 640 ? "Next Year" : "12 Month Forecast"}

`, @@ -435,19 +435,17 @@ gridLineWidth: 1, gridLineColor: "#111827", type: "datetime", + endOnTick: false, labels: { style: { color: "#fff", }, formatter: function () { const date = new Date(this.value); - const isMobile = $screenWidth < 640; - return isMobile - ? date.toLocaleDateString("en-US", { month: "short" }) - : date.toLocaleDateString("en-US", { - month: "short", - year: "numeric", - }); + return date.toLocaleDateString("en-US", { + month: "short", + year: "numeric", + }); }, }, },