Skip to content

Commit b22a295

Browse files
author
Hwashiang Yu
committed
MC-3509: Image inside Text Content Type is scaled on stage
- Added styling banner, slider, and text to set image height to auto.
1 parent e04033e commit b22a295

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@
6060
position: relative;
6161
top: -45px;
6262
}
63+
64+
img {
65+
height: auto;
66+
}
6367
}
6468

6569
> .mce-edit-focus {

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,10 @@
123123

124124
[data-element='content'] {
125125
min-height: 50px;
126+
127+
img {
128+
height: auto;
129+
}
126130
}
127131

128132
.pagebuilder-slide-button {

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@
3333
position: absolute;
3434
top: 5px;
3535
}
36+
37+
img {
38+
height: auto;
39+
}
3640
}
3741
> .mce-edit-focus {
3842
~ .pagebuilder-options,

0 commit comments

Comments
 (0)