Skip to content

Commit

Permalink
fix: double click on timeseries explore resizer (#6295)
Browse files Browse the repository at this point in the history
  • Loading branch information
djbarnwal authored Dec 18, 2024
1 parent e5ffc5d commit 864968c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions web-common/src/features/dashboards/workspace/Dashboard.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down Expand Up @@ -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;
</script>

Expand Down Expand Up @@ -160,8 +161,9 @@
<div class="relative flex-none bg-gray-200 w-[1px]">
<Resizer
dimension={metricsWidth}
min={MIN_METRICS_WIDTH}
min={MIN_TIMESERIES_WIDTH}
max={exploreContainerWidth - 500}
basis={DEFAULT_TIMESERIES_WIDTH}
bind:resizing
side="right"
onUpdate={(width) => {
Expand Down

1 comment on commit 864968c

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.