Skip to content

Commit 6d05cae

Browse files
authored
Fix word breaking in pre tags and help classes (jenkinsci#10881)
2 parents e01ea76 + 058aef7 commit 6d05cae

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/main/scss/base/_style.scss

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ td.tab {
148148

149149
pre {
150150
white-space: pre-wrap;
151-
word-wrap: word-break;
151+
overflow-wrap: break-word;
152152
margin: 0 0 var(--section-padding);
153153
padding: 0.8rem 1rem;
154154
border-radius: var(--form-input-border-radius);
@@ -160,7 +160,7 @@ pre {
160160
line-height: 1.66;
161161

162162
a {
163-
word-wrap: word-break;
163+
overflow-wrap: break-word;
164164
}
165165
}
166166

@@ -290,7 +290,8 @@ pre.console {
290290
display: none; /* hidden until loaded */
291291
padding: 1rem;
292292
margin: 1rem 0;
293-
word-break: word-break;
293+
overflow-wrap: anywhere;
294+
word-break: normal;
294295
border-radius: var(--form-input-border-radius);
295296
background-color: var(--button-background);
296297
border: var(--jenkins-border--subtle);

0 commit comments

Comments
 (0)