diff --git a/src/blocks/rowlayout/edit.js b/src/blocks/rowlayout/edit.js index fcc5b176b..eb8e44193 100644 --- a/src/blocks/rowlayout/edit.js +++ b/src/blocks/rowlayout/edit.js @@ -725,7 +725,7 @@ function RowLayoutEditContainer(props) { const hasBG = bgColor || bgImg || gradient || overlay || overlayGradient || overlayBgImg ? 'kt-row-has-bg' : ''; const isKadenceT = typeof kadence_blocks_params !== 'undefined' && kadence_blocks_params.isKadenceT ? true : false; const paddingSidesTheme = isKadenceT && true === inheritMaxWidth ? 'var(--global-content-edge-padding)' : '0px'; - const paddingSidesDefault = hasBG && !(isKadenceT && true === inheritMaxWidth) ? 'sm' : ''; + const paddingSidesDefault = hasBG && !(isKadenceT && true === inheritMaxWidth) ? '' : ''; const previewPaddingTop = getPreviewSize( previewDevice, undefined !== padding?.[0] ? padding[0] : '', @@ -977,7 +977,7 @@ function RowLayoutEditContainer(props) { ('' !== previewPaddingBottom ? getSpacingOptionOutput(previewPaddingBottom, paddingUnit ? paddingUnit : 'px') : '0px') + - ')' + '))' : undefined, paddingLeft: '' !== previewPaddingLeft @@ -1194,7 +1194,7 @@ function RowLayoutEditContainer(props) { undefined !== padding[0] && padding[1] === '' && padding[3] === '' - ? [padding[0], 'sm', padding[2], 'sm'] + ? [padding[0], '', padding[2], ''] : undefined !== padding && undefined !== padding[0] ? padding : ['sm', '', 'sm', ''] diff --git a/src/blocks/rowlayout/editor.scss b/src/blocks/rowlayout/editor.scss index 4cedf6607..37690cd81 100644 --- a/src/blocks/rowlayout/editor.scss +++ b/src/blocks/rowlayout/editor.scss @@ -559,11 +559,6 @@ div.kb-blocks-bg-video { > .kadence-inner-column-inner.kadence-inner-column-vertical-align-bottom.kadence-inner-column-direction-horizontal { align-items: flex-end; } - -.kt-row-has-bg > .innerblocks-wrap { - padding-left: var(--global-kb-spacing-sm, 1.5rem); - padding-right: var(--global-kb-spacing-sm, 1.5rem); -} .block-editor-block-list__block[data-align="full"] > .is-block-content > .wp-block-kadence-rowlayout { padding-left: 46px; padding-right: 46px; diff --git a/src/blocks/rowlayout/style.scss b/src/blocks/rowlayout/style.scss index c621e43bb..64f7e8058 100644 --- a/src/blocks/rowlayout/style.scss +++ b/src/blocks/rowlayout/style.scss @@ -29,16 +29,6 @@ margin-left: auto; margin-right: auto; } -.kt-row-has-bg > .kt-row-column-wrap { - padding-left: var(--global-content-edge-padding, 15px); - padding-right: var(--global-content-edge-padding, 15px); -} - -.alignfull > .kt-row-layout-inner > .kt-row-column-wrap, -.alignfull > .kt-row-column-wrap { - padding-left: var(--global-content-edge-padding, 15px); - padding-right: var(--global-content-edge-padding, 15px); -} .kt-inner-column-height-full:not(.kt-row-layout-row) { grid-auto-rows: minmax(0, 1fr);