Skip to content

Commit 4357c2d

Browse files
authored
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 cad0fce, but the reason why it was necessary was unclear. This comment makes it clear.
2 parents cbf1a0e + 43f5d2b commit 4357c2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ main {
314314
position: relative;
315315
flex-grow: 1;
316316
padding: 10px 15px 40px 45px;
317-
min-width: 0;
317+
min-width: 0; /* avoid growing beyond the size limit */
318318
}
319319

320320
.source main {

0 commit comments

Comments
 (0)