Skip to content

Commit

Permalink
future-proof minHeight
Browse files Browse the repository at this point in the history
  • Loading branch information
drewdaemon committed Nov 16, 2022
1 parent e23c414 commit 579d122
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -338,9 +338,7 @@ export const MetricVis = ({

const baseTheme = getThemeService().useChartsBaseTheme();

const {
metric: { minHeight },
} = baseTheme;
const minHeight = chartTheme.metric?.minHeight ?? baseTheme.metric.minHeight;

useEffect(() => {
const minimumRequiredVerticalSpace = minHeight * grid.length;
Expand Down

0 comments on commit 579d122

Please sign in to comment.