diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-09-24 07:38:55 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-24 07:38:55 +0200 |
| commit | 9a4fe30fff6ab2009f3cfed639eac0da64368f73 (patch) | |
| tree | 0b9d1b87c312ae1bedce36ff5883cc2f21c51379 /src/librustdoc/html/static/css/rustdoc.css | |
| parent | 6b67b0d34fd33739239ad3b82501cd5731c5de86 (diff) | |
| parent | cd481542df325ad8fd7db5f5c58a72969b1497b3 (diff) | |
| download | rust-9a4fe30fff6ab2009f3cfed639eac0da64368f73.tar.gz rust-9a4fe30fff6ab2009f3cfed639eac0da64368f73.zip | |
Rollup merge of #102146 - notriddle:notriddle/sidebar-jank, r=GuillaumeGomez
rustdoc: CSS prevent sidebar width change jank This commit makes the `width` and `min-width` of the sidebar the same. They originally were when cad0fce2053d52b7ba04c458f4c124c8b5c6141e added the `min-width` rule, but 6a5f8b1aef1417d7dc85b5d0a229d2db1930eb7c changed the `width` without changing the `min-width`, causing it to sometimes oscilate between 200 and 250 pixels depending on the main content. # Before [Screencast from 09-22-2022 10:25:29 AM.webm](https://user-images.githubusercontent.com/1593513/191813469-ea00f30f-6f49-40fc-9a26-e1dfd5068d2b.webm) # After [Screencast from 09-22-2022 10:32:20 AM.webm](https://user-images.githubusercontent.com/1593513/191813642-ae0902da-5262-403a-bbdf-995334201acb.webm)
Diffstat (limited to 'src/librustdoc/html/static/css/rustdoc.css')
| -rw-r--r-- | src/librustdoc/html/static/css/rustdoc.css | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/html/static/css/rustdoc.css b/src/librustdoc/html/static/css/rustdoc.css index e17165440d1..593c1c436b8 100644 --- a/src/librustdoc/html/static/css/rustdoc.css +++ b/src/librustdoc/html/static/css/rustdoc.css @@ -411,7 +411,7 @@ img { .sidebar { font-size: 0.875rem; - width: 250px; + width: 200px; min-width: 200px; overflow-y: scroll; position: sticky; |
