about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2022-11-29 11:37:32 -0700
committerMichael Howell <michael@notriddle.com>2022-11-29 13:22:01 -0700
commit43f5d2b91071b4fe8c475fa1adc003b8005452f4 (patch)
treea8ab1f41e397a5ce52b72b9fe4673c515f0ad7cc
parente0098a5cc3a87d857e597af824d0ce1ed1ad85e0 (diff)
downloadrust-43f5d2b91071b4fe8c475fa1adc003b8005452f4.tar.gz
rust-43f5d2b91071b4fe8c475fa1adc003b8005452f4.zip
rustdoc: add comment to confusing CSS `main { min-width: 0 }`
This CSS was added in cad0fce2053d52b7ba04c458f4c124c8b5c6141e, but the
reason why it was necessary was unclear. This comment makes it clear.
-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 cf5592da432..5c946839242 100644
--- a/src/librustdoc/html/static/css/rustdoc.css
+++ b/src/librustdoc/html/static/css/rustdoc.css
@@ -314,7 +314,7 @@ main {
 	position: relative;
 	flex-grow: 1;
 	padding: 10px 15px 40px 45px;
-	min-width: 0;
+	min-width: 0; /* avoid growing beyond the size limit */
 }
 
 .source main {