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 committed Dec 18, 2024
1 parent 879b37e commit e5f2986
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 @@ -84,8 +86,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 @@ -159,8 +160,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 e5f2986

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