From f9e1dfe92a5708e4c190a272395f8693cba4025a Mon Sep 17 00:00:00 2001 From: MuslemRahimi Date: Thu, 20 Mar 2025 22:07:51 +0100 Subject: [PATCH] ui fix --- package-lock.json | 8 ++++---- package.json | 2 +- src/app.html | 1 + src/lib/components/Options/GreekByExpiry.svelte | 2 +- src/lib/components/Options/GreekExposure.svelte | 2 +- src/routes/+layout.svelte | 6 +++++- 6 files changed, 13 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index d54a52f4..e773d0b8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -50,7 +50,7 @@ "lucide-svelte": "^0.438.0", "luxon": "^3.5.0", "memoize-one": "^6.0.0", - "mode-watcher": "^0.5.1", + "mode-watcher": "^0.5.0", "object-to-formdata": "^4.5.1", "parse5": "^7.1.2", "pocketbase": "^0.25.2", @@ -6921,9 +6921,9 @@ } }, "node_modules/mode-watcher": { - "version": "0.5.1", - "resolved": "https://registry.npmjs.org/mode-watcher/-/mode-watcher-0.5.1.tgz", - "integrity": "sha512-adEC6T7TMX/kzQlaO/MtiQOSFekZfQu4MC+lXyoceQG+U5sKpJWZ4yKXqw846ExIuWJgedkOIPqAYYRk/xHm+w==", + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/mode-watcher/-/mode-watcher-0.5.0.tgz", + "integrity": "sha512-5E6fh/aXhAVv+U+DbeM0hCmskQE9u7WSmvnCRijJB/MJu7HtB73sjiCaZ9n1M8QHmzLrBFo8XBAUcWXkDm8Z9A==", "dev": true, "license": "MIT", "peerDependencies": { diff --git a/package.json b/package.json index 47f29a7f..85b6db94 100644 --- a/package.json +++ b/package.json @@ -50,7 +50,7 @@ "lucide-svelte": "^0.438.0", "luxon": "^3.5.0", "memoize-one": "^6.0.0", - "mode-watcher": "^0.5.1", + "mode-watcher": "^0.5.0", "object-to-formdata": "^4.5.1", "parse5": "^7.1.2", "pocketbase": "^0.25.2", diff --git a/src/app.html b/src/app.html index d9e089d0..1f247091 100644 --- a/src/app.html +++ b/src/app.html @@ -7,6 +7,7 @@ + %sveltekit.head% diff --git a/src/lib/components/Options/GreekByExpiry.svelte b/src/lib/components/Options/GreekByExpiry.svelte index 7ae3873b..a37d15ce 100644 --- a/src/lib/components/Options/GreekByExpiry.svelte +++ b/src/lib/components/Options/GreekByExpiry.svelte @@ -168,7 +168,7 @@ gridLineWidth: 1, gridLineColor: $mode === "light" ? "#d1d5dc" : "#111827", labels: { - style: { color: "white" }, + style: { color: $mode === "light" ? "black" : "white" }, formatter: function () { return abbreviateNumber(this.value); }, diff --git a/src/lib/components/Options/GreekExposure.svelte b/src/lib/components/Options/GreekExposure.svelte index 09ee800e..ab390b61 100644 --- a/src/lib/components/Options/GreekExposure.svelte +++ b/src/lib/components/Options/GreekExposure.svelte @@ -193,7 +193,7 @@ gridLineWidth: 1, gridLineColor: $mode === "light" ? "#d1d5dc" : "#111827", labels: { - style: { color: "white" }, + style: { color: $mode === "light" ? "black" : "white" }, formatter: function () { return abbreviateNumber(this.value); }, diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 9d37c2de..5cb6f0fa 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -272,6 +272,10 @@ + + + +
@@ -1231,7 +1235,7 @@ - + {#if Cookie && $showCookieConsent === true}