Skip to content

Commit 52c8961

Browse files
committed
Merge pull request #21133 from iKevinY/mobile-rustdoc
Improve Rust Documentation & Reference on mobile Reviewed-by: steveklabnik
2 parents c1ba63e + 5a16ceb commit 52c8961

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/doc/rust.css

+3-1
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ h5 a:hover {text-decoration: none;}
195195

196196
pre, code {
197197
font-family: "Source Code Pro", Menlo, Monaco, Consolas, "DejaVu Sans Mono", monospace;
198+
word-wrap: break-word;
198199
}
199200
pre {
200201
border-left: 2px solid #eee;
@@ -204,7 +205,6 @@ pre {
204205
margin: 20px 0;
205206
font-size: 13px;
206207
word-break: break-all;
207-
word-wrap: break-word;
208208
}
209209
code {
210210
padding: 0 2px;
@@ -315,6 +315,8 @@ hr {
315315
table {
316316
border-collapse: collapse;
317317
border-spacing: 0;
318+
overflow-x: auto;
319+
display: block;
318320
}
319321

320322
table tr.odd {

0 commit comments

Comments
 (0)