about summary refs log tree commit diff
path: root/src/librustdoc/html/static/css/rustdoc.css
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2022-09-22 10:25:54 -0700
committerMichael Howell <michael@notriddle.com>2022-09-23 08:35:14 -0700
commitee8e0bda342bb0b873aeafbd0f8722deb09339b3 (patch)
tree7f4142bffe28b4ffbbe76c04c56b5aab182faef3 /src/librustdoc/html/static/css/rustdoc.css
parent4d44e09cb1db2788f59159c4b9055e339ed2181d (diff)
downloadrust-ee8e0bda342bb0b873aeafbd0f8722deb09339b3.tar.gz
rust-ee8e0bda342bb0b873aeafbd0f8722deb09339b3.zip
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.
Diffstat (limited to 'src/librustdoc/html/static/css/rustdoc.css')
-rw-r--r--src/librustdoc/html/static/css/rustdoc.css2
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 3461d083c60..b7a52cb0c33 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;