diff --git a/packages/block-library/src/spacer/controls.js b/packages/block-library/src/spacer/controls.js index 63550254e1be0a..d7b8c451a912d7 100644 --- a/packages/block-library/src/spacer/controls.js +++ b/packages/block-library/src/spacer/controls.js @@ -15,7 +15,7 @@ import { useInstanceId } from '@wordpress/compose'; /** * Internal dependencies */ -import { MAX_SPACER_SIZE } from './edit'; +import { MIN_SPACER_SIZE } from './edit'; function DimensionInput( { label, onChange, isResizing, value = '' } ) { const inputId = useInstanceId( UnitControl, 'block-spacer-height-input' ); @@ -56,8 +56,7 @@ function DimensionInput( { label, onChange, isResizing, value = '' } ) { { - const nextVal = Math.min( - MAX_SPACER_SIZE, - getCurrentSize( elt ) - ); + const nextVal = getCurrentSize( elt ); onResizeStop( `${ nextVal }px` ); setIsResizing( false ); } } @@ -147,6 +143,7 @@ const SpacerEdit = ( { return ( <>