Skip to content

Commit

Permalink
KAD-3741 row layout bg color left/right padding issue
Browse files Browse the repository at this point in the history
  • Loading branch information
gilbert-hernandez committed Dec 3, 2024
1 parent f75bab6 commit abf190c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 18 deletions.
6 changes: 3 additions & 3 deletions src/blocks/rowlayout/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -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] : '',
Expand Down Expand Up @@ -977,7 +977,7 @@ function RowLayoutEditContainer(props) {
('' !== previewPaddingBottom
? getSpacingOptionOutput(previewPaddingBottom, paddingUnit ? paddingUnit : 'px')
: '0px') +
')'
'))'
: undefined,
paddingLeft:
'' !== previewPaddingLeft
Expand Down Expand Up @@ -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', '']
Expand Down
5 changes: 0 additions & 5 deletions src/blocks/rowlayout/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
10 changes: 0 additions & 10 deletions src/blocks/rowlayout/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit abf190c

Please sign in to comment.