Skip to content

Commit 4a2a5f0

Browse files
authored
Fix ascii art text wrapping in mobile
Fix #81377
1 parent 7ce1b3b commit 4a2a5f0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/librustdoc/html/static/rustdoc.css

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ code, pre, a.test-arrow {
156156
}
157157
.docblock pre code, .docblock-short pre code, .docblock code.spotlight {
158158
padding: 0;
159+
padding-right: 1ex;
159160
}
160161
.docblock code.spotlight :last-child {
161162
padding-bottom: 0.6em;
@@ -404,9 +405,6 @@ nav.sub {
404405
text-overflow: ellipsis;
405406
margin: 0;
406407
}
407-
.docblock code, .docblock-short code {
408-
white-space: pre-wrap;
409-
}
410408

411409
.docblock h1, .docblock h2, .docblock h3, .docblock h4, .docblock h5 {
412410
border-bottom: 1px solid;

0 commit comments

Comments
 (0)