Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: double click on timeseries explore resizer #6295

Merged
merged 1 commit into from
Dec 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading