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 @@
{