about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-11-30 19:53:19 +0100
committerGitHub <noreply@github.com>2022-11-30 19:53:19 +0100
commit4357c2d0183e48b6b39b235676ca24f3cbb818e4 (patch)
tree1bf1264e20a6a7b42aa246fd75c634e5ae36e599
parentcbf1a0ed3ac0b436834e80086f136ef18b3b2ccf (diff)
parent43f5d2b91071b4fe8c475fa1adc003b8005452f4 (diff)
downloadrust-4357c2d0183e48b6b39b235676ca24f3cbb818e4.tar.gz
rust-4357c2d0183e48b6b39b235676ca24f3cbb818e4.zip
Rollup merge of #105064 - notriddle:notriddle/main-min-width, r=GuillaumeGomez
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 de882e66f43..a3a90f5a58b 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 {