Skip to content

Commit

Permalink
Fix "Block spacing" in Dimensions Panel
Browse files Browse the repository at this point in the history
  • Loading branch information
mirka committed Aug 15, 2024
1 parent 7aabc76 commit 71fbd47
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,9 @@ export default function DimensionsPanel( {
}
className={ clsx( {
'tools-panel-item-spacing': showSpacingPresetsControl,
'single-column':
// If UnitControl is used, should be single-column.
! showSpacingPresetsControl && ! isAxialGap,
} ) }
panelId={ panelId }
>
Expand All @@ -627,10 +630,8 @@ export default function DimensionsPanel( {
/>
) : (
<UnitControl
// TODO: Switch to `true` (40px size) if possible
__next40pxDefaultSize={ false }
__next40pxDefaultSize
label={ __( 'Block spacing' ) }
__unstableInputWidth="80px"
min={ 0 }
onChange={ setGapValue }
units={ units }
Expand Down

0 comments on commit 71fbd47

Please sign in to comment.