Skip to content

Commit

Permalink
Rollup merge of rust-lang#91225 - GuillaumeGomez:source-page-scrollba…
Browse files Browse the repository at this point in the history
…r, r=jsha

Fix invalid scrollbar display on source code page

Fixes bug introduced in rust-lang#90983:

![Screenshot from 2021-11-25 17-01-08](https://user-images.githubusercontent.com/3050060/143473753-c2e7c43c-ce3f-474d-9d2a-922e63189c51.png)
![Screenshot from 2021-11-25 17-07-08](https://user-images.githubusercontent.com/3050060/143473757-eecaaf2b-f4f0-49e0-a159-ab485e3f7122.png)

To fix it, I simply unset the `overflow-y` on the source code page so it's not displayed anymore.

r? `@jsha`
  • Loading branch information
matthiaskrgr authored Nov 26, 2021
2 parents 7690946 + c981d40 commit caf7614
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/librustdoc/html/static/css/rustdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,10 @@ nav.sub {
overflow-y: scroll;
}

.rustdoc.source .sidebar {
overflow-y: auto;
}

/* Improve the scrollbar display on firefox */
* {
scrollbar-width: initial;
Expand Down

0 comments on commit caf7614

Please sign in to comment.