From 99e9d3525570195746224203450fa51a6000350b Mon Sep 17 00:00:00 2001 From: Mikhaela Tapia <98727316+mxkae@users.noreply.github.com> Date: Thu, 5 Sep 2024 14:46:51 +0800 Subject: [PATCH] fix (carousel block): hide column margin settings (#3257) * add wrapper div in frontend * Revert "add wrapper div in frontend" This reverts commit 6be73bda2ab685ab9c6982ee89e32fe0cb14a790. * remove marin in inspector controls --- src/block-components/block-div/edit.js | 1 + src/block/carousel/edit.js | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/block-components/block-div/edit.js b/src/block-components/block-div/edit.js index 4c1a2da73..8f7df2b5f 100644 --- a/src/block-components/block-div/edit.js +++ b/src/block-components/block-div/edit.js @@ -57,6 +57,7 @@ export const Edit = props => { visualGuide={ { highlight: 'padding', } } + { ...props.sizeControlSpacingProps } /> ) } diff --git a/src/block/carousel/edit.js b/src/block/carousel/edit.js index 72e00de15..a7fc614db 100644 --- a/src/block/carousel/edit.js +++ b/src/block/carousel/edit.js @@ -252,6 +252,9 @@ const Edit = props => { } }, [ maxSlides, activeSlide ] ) + const sizeControlSpacingProps = { + enableMargin: false, + } return ( <> <> @@ -587,7 +590,7 @@ const Edit = props => { - +