Rollup merge of #102066 - notriddle:notriddle/headers-max-width, r=GuillaumeGomez

rustdoc: remove unnecessary `max-width` on headers

This code was added in 003b2bc1c6 to prevent these headers from overlapping `.out-of-band` side items. That stopped being a problem when 3f92ff34b5 switched rustdoc over to using `float`, rather than `position: absolute`, to implement this.
This commit is contained in:
Matthias Krüger 2022-09-23 04:29:18 +02:00 committed by GitHub
commit f4c492cb5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View File

@ -674,7 +674,6 @@ h2.location a {
}
.method > .code-header, .trait-impl > .code-header {
max-width: calc(100% - 41px);
display: block;
}

View File

@ -83,7 +83,7 @@ assert-position: (
)
// Checking on very small mobile. The `i` should be on its own line.
size: (410, 600)
size: (365, 600)
compare-elements-position-false: (
"//*[@id='method.create_an_iterator_from_read']//a[text()='NotableStructWithLongName']",
"//*[@id='method.create_an_iterator_from_read']//*[@class='notable-traits']",