Skip to content

Commit 2a71388

Browse files
committed
PB-179: Product Content Type Inner Contents Should Not Align Based On Alignment Configuration
- specify left as default for product content
1 parent 4bc0b5b commit 2a71388

File tree

2 files changed

+13
-0
lines changed
  • app/code/Magento/PageBuilder/view

2 files changed

+13
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
max-width: 100%;
3737
min-width: 50px;
3838
padding-left: 20px;
39+
text-align: left;
3940
vertical-align: top;
4041
width: 200px;
4142

app/code/Magento/PageBuilder/view/frontend/web/css/source/content-type/products/_default.less

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,33 +8,45 @@
88
// _____________________________________________
99

1010
& when (@media-common = true) {
11+
[data-content-type='products'] {
12+
li.product-item {
13+
text-align: left;
14+
}
15+
}
16+
1117
.pagebuilder-column {
1218
.widget-product-grid {
1319
.product-item {
1420
max-width: 100%;
1521
min-width: 50px;
22+
1623
.price-box {
1724
word-wrap: break-word;
25+
1826
.price {
1927
white-space: normal;
2028
}
2129
}
30+
2231
.product-item-actions {
2332
.actions-primary {
2433
display: inline-block;
2534
max-width: 100%;
2635
}
36+
2737
.actions-secondary {
2838
display: inline-block;
2939
width: auto;
3040
}
41+
3142
.tocart {
3243
max-width: 100%;
3344
white-space: normal;
3445
}
3546
}
3647
}
3748
}
49+
3850
[data-content-type='products'] {
3951
.block.widget {
4052
.products-grid {

0 commit comments

Comments
 (0)