Skip to content

Commit ee8e0bd

Browse files
committed
rustdoc: CSS prevent sidebar width change jank
This commit makes the `width` and `min-width` of the sidebar the same. They originally were when cad0fce added the `min-width` rule, but 6a5f8b1 changed the width without changing the `min-width`, causing it to sometimes oscilate between 200 and 250 pixels depending on the main content.
1 parent 4d44e09 commit ee8e0bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustdoc/html/static/css/rustdoc.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ img {
411411

412412
.sidebar {
413413
font-size: 0.875rem;
414-
width: 250px;
414+
width: 200px;
415415
min-width: 200px;
416416
overflow-y: scroll;
417417
position: sticky;

0 commit comments

Comments
 (0)