Skip to content

Commit fc48893

Browse files
authored
Rollup merge of rust-lang#45212 - GuillaumeGomez:sidebar-fixed, r=QuietMisdreavus
Limit the sidebar height The sidebar is now fixed, which means its scrolling is independent of the main page now. r? @rust-lang/docs
2 parents bea6136 + 9ce41f2 commit fc48893

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/librustdoc/html/static/rustdoc.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,10 +171,11 @@ nav.sub {
171171

172172
.sidebar {
173173
width: 200px;
174-
position: absolute;
174+
position: fixed;
175175
left: 0;
176176
top: 0;
177-
min-height: 100%;
177+
height: 100vh;
178+
overflow: auto;
178179
}
179180

180181
.sidebar .current {

0 commit comments

Comments
 (0)