Skip to content

Commit

Permalink
Merge pull request #1655 from visualize-admin/fix/editing-aspect-ratio
Browse files Browse the repository at this point in the history
fix: Editing aspect ratio
  • Loading branch information
bprusinowski authored Jul 8, 2024
2 parents 2b39c12 + d9ecb0c commit 7c39722
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ You can also check the

# Unreleased

Nothing yet.
- Fixes
- Going back to edit mode from free canvas layout no longer hides the chart

# [4.7.1] - 2024-07-08

Expand Down
5 changes: 4 additions & 1 deletion app/charts/shared/containers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { useObserverRef } from "@/charts/shared/use-size";
import {
ChartConfig,
hasChartConfigs,
isConfiguring,
useConfiguratorState,
} from "@/configurator";
import { useTransitionStore } from "@/stores/transition";
Expand Down Expand Up @@ -67,7 +68,9 @@ export const ChartContainer = ({
className={clsx(
classes.chartContainer,
classes[type],
state.layout.type === "dashboard" && state.layout.layout === "canvas"
!isConfiguring(state) &&
state.layout.type === "dashboard" &&
state.layout.layout === "canvas"
? null
: classes.constrainMinHeight
)}
Expand Down

0 comments on commit 7c39722

Please sign in to comment.