diff options
| author | Jonas Schievink <jonasschievink@gmail.com> | 2021-01-31 01:47:44 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-31 01:47:44 +0100 |
| commit | 45d24c729c41a8ec737dbfe0b79c67e943d37e7f (patch) | |
| tree | e46737df0edf7ce25b6d6a380e0edf9f39c2ca0a | |
| parent | 635dbd60bfd0a19f9d39e8da45343e3340f910ea (diff) | |
| parent | 6d7ef10b4662fcd76cac9ca81568fcd26136b4db (diff) | |
| download | rust-45d24c729c41a8ec737dbfe0b79c67e943d37e7f.tar.gz rust-45d24c729c41a8ec737dbfe0b79c67e943d37e7f.zip | |
Rollup merge of #81558 - pickfire:patch-5, r=GuillaumeGomez
Fix ascii art text wrapping in mobile Fix #81377 Before    After    Note the second image is scrolled to the back (right), I added some padding for the text block (not the code block) to make it more comfortable to read since the last character is stuck to the last character.
| -rw-r--r-- | src/librustdoc/html/static/rustdoc.css | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/librustdoc/html/static/rustdoc.css b/src/librustdoc/html/static/rustdoc.css index 8dad26dced9..644a186ff16 100644 --- a/src/librustdoc/html/static/rustdoc.css +++ b/src/librustdoc/html/static/rustdoc.css @@ -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; @@ -404,7 +405,7 @@ nav.sub { text-overflow: ellipsis; margin: 0; } -.docblock code, .docblock-short code { +.docblock-short code { white-space: pre-wrap; } |
