Skip to content

Commit

Permalink
fix (carousel block): hide column margin settings (#3257)
Browse files Browse the repository at this point in the history
* add wrapper div in frontend

* Revert "add wrapper div in frontend"

This reverts commit 6be73bd.

* remove marin in inspector controls
  • Loading branch information
mxkae authored Sep 5, 2024
1 parent 9e02f69 commit 99e9d35
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/block-components/block-div/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export const Edit = props => {
visualGuide={ {
highlight: 'padding',
} }
{ ...props.sizeControlSpacingProps }
/>
</PanelAdvancedSettings>
) }
Expand Down
5 changes: 4 additions & 1 deletion src/block/carousel/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,9 @@ const Edit = props => {
}
}, [ maxSlides, activeSlide ] )

const sizeControlSpacingProps = {
enableMargin: false,
}
return (
<>
<>
Expand Down Expand Up @@ -587,7 +590,7 @@ const Edit = props => {

<ContentAlign.InspectorControls />
<Alignment.InspectorControls />
<BlockDiv.InspectorControls />
<BlockDiv.InspectorControls sizeControlSpacingProps={ sizeControlSpacingProps } />
<Separator.InspectorControls />
<Advanced.InspectorControls />

Expand Down

0 comments on commit 99e9d35

Please sign in to comment.