Skip to content

Commit

Permalink
Fix ascii art text wrapping in mobile
Browse files Browse the repository at this point in the history
Fix #81377
  • Loading branch information
pickfire authored Jan 30, 2021
1 parent 7ce1b3b commit 4a2a5f0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/librustdoc/html/static/rustdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ code, pre, a.test-arrow {
}
.docblock pre code, .docblock-short pre code, .docblock code.spotlight {
padding: 0;
padding-right: 1ex;
}
.docblock code.spotlight :last-child {
padding-bottom: 0.6em;
Expand Down Expand Up @@ -404,9 +405,6 @@ nav.sub {
text-overflow: ellipsis;
margin: 0;
}
.docblock code, .docblock-short code {
white-space: pre-wrap;
}

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

0 comments on commit 4a2a5f0

Please sign in to comment.