Skip to content

Commit

Permalink
fix column wrap on frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
mxkae committed Mar 25, 2024
1 parent 25cda0d commit 8b15c6a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/block/feature/save.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ export const Save = props => {
'stk-block-feature',
responsiveClass,
separatorClass,
] )
], {
'stk--column-wrap': props.attributes.columnWrapDesktop,
} )

const contentClassNames = classnames(
applyFilters( 'stackable.feature.save.contentClassNames', {
Expand Down
4 changes: 4 additions & 0 deletions src/block/feature/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
.stk-block-feature {
--stk-column-gap: 0px; // For nested columns, this takes precedence.
--stk-row-gap: 0px;

&.stk--column-wrap .stk-row {
flex-wrap: wrap;
}
}
.stk-block-feature > * > .stk-block-content {
column-gap: var(--stk-column-gap);
Expand Down
1 change: 0 additions & 1 deletion src/components/resizable-column/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ const ResizableColumn = props => {
}, [ adjacentBlocks ] )

useEffect( () => {
// const total = newWidthsPercent.reduce( ( a, b ) => a + b, 0 )
if ( parentBlock && isDesktop && ! columnWrapDesktop ) {
fixWidthOnDisableWrap()
}
Expand Down

0 comments on commit 8b15c6a

Please sign in to comment.