Skip to content

Commit 9e44888

Browse files
committed
MC-5372: Collage Center/Left/Right doesn't work correct in a container smaller than 100% width
- change collage overlays to fixed px width
1 parent e04033e commit 9e44888

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
transition: background-color 500ms ease;
2222

2323
&:not(.pagebuilder-poster-overlay) {
24-
max-width: 50%;
24+
max-width: 540px;
2525
}
2626
}
2727

@@ -123,7 +123,7 @@
123123
word-wrap: break-word;
124124

125125
.pagebuilder-overlay:not(.pagebuilder-poster-overlay) {
126-
max-width: 50%;
126+
max-width: 540px;
127127
}
128128

129129
[data-element='content'] {

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
font-weight: lighter;
2121
}
2222
.pagebuilder-overlay:not(.pagebuilder-poster-overlay) {
23-
max-width: 50%;
23+
max-width: 540px;
2424
}
2525

2626
.pagebuilder-slide-button {
@@ -118,7 +118,7 @@
118118
word-wrap: break-word;
119119

120120
.pagebuilder-overlay:not(.pagebuilder-poster-overlay) {
121-
max-width: 50%;
121+
max-width: 540px;
122122
}
123123

124124
[data-element='content'] {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
}
4141

4242
&:not(.pagebuilder-poster-overlay) {
43-
max-width: 50%;
43+
max-width: 540px;
4444
}
4545
}
4646

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
}
4646

4747
&:not(.pagebuilder-poster-overlay) {
48-
max-width: 50%;
48+
max-width: 540px;
4949
}
5050
}
5151

0 commit comments

Comments
 (0)