Skip to content

Commit 291f57a

Browse files
committed
MC-1263: Buttons of Image Content Block are not aligned correctly
- Updated styles to cover more cases
1 parent bd3140c commit 291f57a

File tree

1 file changed

+14
-18
lines changed
  • app/code/Magento/PageBuilder/view/adminhtml/web/css/source/content-type/image

1 file changed

+14
-18
lines changed

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

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -15,30 +15,26 @@
1515
.column-width-30 &,
1616
.column-width-20 &,
1717
.column-width-10 & {
18-
.file-uploader-area > span {
19-
display: none;
20-
}
21-
.file-uploader-button {
22-
margin-left: 0;
23-
margin-right: 0;
18+
.file-uploader-area {
19+
align-items: center;
20+
display: flex;
21+
flex-direction: column;
22+
position: relative;
2423

25-
~ .file-uploader-button {
26-
margin-left: 15px;
24+
> span {
25+
display: none;
2726
}
2827
}
29-
}
30-
.column-width-20 &,
31-
.column-width-10 & {
32-
.file-uploader-button {
33-
width: auto;
28+
.image-upload-instructions {
29+
margin-bottom: 5px;
3430
}
35-
}
36-
.column-width-30 &,
37-
.column-width-20 &,
38-
.column-width-10 & {
39-
.file-uploader-button ~ .file-uploader-button {
31+
.file-uploader-button {
32+
display: block;
4033
margin-left: 0;
34+
margin-right: 0;
4135
margin-top: 15px;
36+
max-width: 150px;
37+
width: 100%;
4238
}
4339
}
4440
.column-width-10 & {

0 commit comments

Comments
 (0)