From 625150ceef9ea94e35ac2d73723502500367a5ac Mon Sep 17 00:00:00 2001 From: MuslemRahimi Date: Sun, 30 Mar 2025 15:45:22 +0200 Subject: [PATCH] ui fix --- .../DarkPool/HistoricalVolume.svelte | 13 +++- src/lib/components/DarkPool/PriceLevel.svelte | 32 +++++---- .../components/DarkPool/RealtimeTrade.svelte | 66 +++++++++++-------- src/lib/components/InfoModal.svelte | 14 ++-- 4 files changed, 73 insertions(+), 52 deletions(-) diff --git a/src/lib/components/DarkPool/HistoricalVolume.svelte b/src/lib/components/DarkPool/HistoricalVolume.svelte index 7711bcb6..b31328de 100644 --- a/src/lib/components/DarkPool/HistoricalVolume.svelte +++ b/src/lib/components/DarkPool/HistoricalVolume.svelte @@ -85,14 +85,23 @@ animation: false, }, title: { - text: `

${removeCompanyStrings($displayCompanyName)} Historical Chart

`, + text: `

${removeCompanyStrings($displayCompanyName)} Historical Chart

`, style: { color: $mode === "light" ? "black" : "white", }, useHTML: true, }, legend: { - enabled: false, + enabled: true, + align: "center", // Positions legend at the left edge + verticalAlign: "top", // Positions legend at the top + layout: "horizontal", // Align items horizontally (use 'vertical' if preferred) + itemStyle: { + color: $mode === "light" ? "black" : "white", + }, + symbolWidth: 16, // Controls the width of the legend symbol + symbolRadius: 8, // Creates circular symbols (adjust radius as needed) + squareSymbol: false, // Ensures symbols are circular, not square }, xAxis: { type: "datetime", diff --git a/src/lib/components/DarkPool/PriceLevel.svelte b/src/lib/components/DarkPool/PriceLevel.svelte index d5aabd85..5f488b14 100644 --- a/src/lib/components/DarkPool/PriceLevel.svelte +++ b/src/lib/components/DarkPool/PriceLevel.svelte @@ -1,6 +1,6 @@