Skip to content

Commit 2068cdc

Browse files
committed
PB-108 add flex wrap for column line content on mobile
1 parent 4222a06 commit 2068cdc

File tree

4 files changed

+33
-1
lines changed

4 files changed

+33
-1
lines changed

app/code/Magento/PageBuilder/view/adminhtml/web/css/source/content-type/_import.less

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
@import 'buttons/_import.less';
1616
@import 'column/_import.less';
1717
@import 'column-group/_import.less';
18+
@import 'column-line/_import.less';
1819
@import 'divider/_import.less';
1920
@import 'heading/_import.less';
2021
@import 'html/_import.less';

app/code/Magento/PageBuilder/view/adminhtml/web/css/source/content-type/block/_mobile.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
.mobile-viewport {
99
.pagebuilder-content-type.pagebuilder-block {
1010
.rendered-content {
11-
.pagebuilder-column-group {
11+
.pagebuilder-column-group, .pagebuilder-column-line {
1212
flex-wrap: wrap;
1313
.pagebuilder-column {
1414
flex-basis: 100%;
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// /**
2+
// * Copyright © Magento, Inc. All rights reserved.
3+
// * See COPYING.txt for license details.
4+
// */
5+
6+
//
7+
// _import imports all appearance less files
8+
// _____________________________________________
9+
10+
@import './_mobile.less';
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// /**
2+
// * Copyright © Magento, Inc. All rights reserved.
3+
// * See COPYING.txt for license details.
4+
// */
5+
6+
//
7+
// Default appearance styles rendered through Mobile viewport
8+
// _____________________________________________________
9+
.mobile-viewport {
10+
.pagebuilder-content-type {
11+
.pagebuilder-column-line {
12+
> .element-children {
13+
flex-wrap: wrap;
14+
}
15+
}
16+
17+
&.children-min-height.pagebuilder-column {
18+
width: 100% !important;
19+
}
20+
}
21+
}

0 commit comments

Comments
 (0)