Skip to content

Commit 21c048b

Browse files
committed
MC-4965: Text Wrapping Inside Inline WYSIWYG Editors Will Break On Words (Storefront as well for Slide & Banner)
- add word wrapping to banner, slide, and text when in blocks
1 parent fdd1852 commit 21c048b

File tree

3 files changed

+36
-16
lines changed

3 files changed

+36
-16
lines changed

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

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -118,15 +118,21 @@
118118
// _____________________________________________________
119119

120120
[data-role='banner'] {
121-
.pagebuilder-overlay:not(.pagebuilder-poster-overlay) {
122-
max-width: 50%;
123-
}
121+
.pagebuilder-banner-wrapper {
122+
overflow-wrap: break-word;
124123

125-
[data-element='content'] {
126-
min-height: 50px;
127-
}
124+
.pagebuilder-overlay:not(.pagebuilder-poster-overlay) {
125+
max-width: 50%;
126+
}
128127

129-
.pagebuilder-banner-button {
130-
margin: @margin 0 0 0;
128+
[data-element='content'] {
129+
min-height: 50px;
130+
}
131+
132+
.pagebuilder-banner-button {
133+
margin: @margin 0 0 0;
134+
max-width: 100%;
135+
word-break: break-word;
136+
}
131137
}
132138
}

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

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -113,15 +113,21 @@
113113
// _____________________________________________________
114114

115115
[data-role='slide'] {
116-
.pagebuilder-overlay:not(.pagebuilder-poster-overlay) {
117-
max-width: 50%;
118-
}
116+
.pagebuilder-slide-wrapper {
117+
overflow-wrap: break-word;
119118

120-
[data-element='content'] {
121-
min-height: 50px;
122-
}
119+
.pagebuilder-overlay:not(.pagebuilder-poster-overlay) {
120+
max-width: 50%;
121+
}
123122

124-
.pagebuilder-slide-button {
125-
margin: 20px 0 0 0;
123+
[data-element='content'] {
124+
min-height: 50px;
125+
}
126+
127+
.pagebuilder-slide-button {
128+
margin: 20px 0 0 0;
129+
max-width: 100%;
130+
word-break: break-word;
131+
}
126132
}
127133
}

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,11 @@
5858
.pagebuilder-stage.interacting .pagebuilder-content-type.pagebuilder-text:not(.pagebuilder-toolbar-active) {
5959
pointer-events: none;
6060
}
61+
62+
//
63+
// Styles rendered through Blocks
64+
// ______________________________
65+
66+
[data-role='text'] {
67+
overflow-wrap: break-word;
68+
}

0 commit comments

Comments
 (0)