diff options
| author | Yuki Okushi <huyuumi.dev@gmail.com> | 2021-01-08 02:06:11 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-08 02:06:11 +0900 |
| commit | 94a27f2617c540132b07667df6ad92ee02f33a69 (patch) | |
| tree | 24cfc4d8f92517d9814fa01b8dc7befa83e721b0 | |
| parent | 2e9788b2986e6bc5f007374136548c5c68240dd8 (diff) | |
| parent | aea9a4b449c0b7006c65b9dfb5818a9bdf6fab86 (diff) | |
| download | rust-94a27f2617c540132b07667df6ad92ee02f33a69.tar.gz rust-94a27f2617c540132b07667df6ad92ee02f33a69.zip | |
Rollup merge of #80738 - arusahni:master, r=GuillaumeGomez
Remove bottom margin from crate version when the docs sidebar is collapsed This fixes a mobile UI bug where a vertical scrollbar would always be rendered on the sidebar nav when the menu was closed. When opened, the overflow would be handled by the opened sidebar, causing the scrollbar to disappear, and the contents to shift to the right. ## Firefox **Before**   **After**   ## Chrome **Before**  **After** 
| -rw-r--r-- | src/librustdoc/html/static/rustdoc.css | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/librustdoc/html/static/rustdoc.css b/src/librustdoc/html/static/rustdoc.css index 28b118ea78e..8dad26dced9 100644 --- a/src/librustdoc/html/static/rustdoc.css +++ b/src/librustdoc/html/static/rustdoc.css @@ -1412,6 +1412,7 @@ h4 > .notable-traits { .sidebar > .block.version { border-bottom: none; margin-top: 12px; + margin-bottom: 0; } nav.sub { |
