From 864968c7b988a98bedf08ffe9764f88b9855e6dd Mon Sep 17 00:00:00 2001 From: Dhiraj Barnwal Date: Wed, 18 Dec 2024 09:45:28 +0530 Subject: [PATCH] fix: double click on timeseries explore resizer (#6295) --- .../src/features/dashboards/workspace/Dashboard.svelte | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/web-common/src/features/dashboards/workspace/Dashboard.svelte b/web-common/src/features/dashboards/workspace/Dashboard.svelte index 5cd573cb8d5..bc1c4871680 100644 --- a/web-common/src/features/dashboards/workspace/Dashboard.svelte +++ b/web-common/src/features/dashboards/workspace/Dashboard.svelte @@ -24,6 +24,8 @@ export let metricsViewName: string; export let isEmbedded: boolean = false; + const DEFAULT_TIMESERIES_WIDTH = 580; + const MIN_TIMESERIES_WIDTH = 440; const StateManagers = getStateManagers(); const { selectors: { @@ -85,8 +87,7 @@ $: metricsView = $validSpecStore.data?.metricsView ?? {}; - let metricsWidth = 580; // Default width for metrics section - const MIN_METRICS_WIDTH = 440; + let metricsWidth = DEFAULT_TIMESERIES_WIDTH; let resizing = false; @@ -160,8 +161,9 @@
{