Skip to content

Commit

Permalink
BlockPreview: Fix 'Infinity' is invalid 'minHeight' value warning (#4…
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka authored Jun 17, 2022
1 parent f14f80f commit 8bddab4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-editor/src/components/block-preview/auto.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ function AutoBlockPreview( {
// See: https://github.com/WordPress/gutenberg/pull/38175.
maxHeight: MAX_HEIGHT,
minHeight:
scale < 1 && __experimentalMinHeight
scale !== 0 && scale < 1 && __experimentalMinHeight
? __experimentalMinHeight / scale
: __experimentalMinHeight,
} }
Expand Down

0 comments on commit 8bddab4

Please sign in to comment.