Skip to content

Commit abe4a87

Browse files
committed
fix: add inner column > inner column spacing presets
1 parent 0b671a4 commit abe4a87

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/block/column/edit.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import blockStyles from './style'
88
*/
99
import classnames from 'classnames'
1010
import { i18n, version as VERSION } from 'stackable'
11-
import { useBlockLayoutDefaults } from '~stackable/hooks'
11+
import { useBlockLayoutDefaults, usePresetControls } from '~stackable/hooks'
1212
import {
1313
AdvancedToggleControl,
1414
FourRangeControl,
@@ -164,6 +164,8 @@ const Edit = props => {
164164
// props used by controls to prevent rerenders of all the inspector controls.
165165
const InspectorControls = memo( props => {
166166
const { getPlaceholder } = useBlockLayoutDefaults()
167+
const presets = usePresetControls( 'spacingSizes' )?.getPresetMarks() || null
168+
167169
return (
168170
<>
169171
<InspectorTabs />
@@ -187,6 +189,7 @@ const InspectorControls = memo( props => {
187189
highlight: 'column-spacing',
188190
defaultValue: '12px',
189191
} }
192+
marks={ presets }
190193
/>
191194
</InspectorLayoutControls>
192195

0 commit comments

Comments
 (0)