Skip to content

Commit 39fe599

Browse files
authored
Rollup merge of rust-lang#102066 - notriddle:notriddle/headers-max-width, r=GuillaumeGomez
rustdoc: remove unnecessary `max-width` on headers This code was added in 003b2bc to prevent these headers from overlapping `.out-of-band` side items. That stopped being a problem when 3f92ff3 switched rustdoc over to using `float`, rather than `position: absolute`, to implement this.
2 parents a197d29 + f528d49 commit 39fe599

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

Diff for: src/librustdoc/html/static/css/rustdoc.css

-1
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,6 @@ h2.location a {
674674
}
675675

676676
.method > .code-header, .trait-impl > .code-header {
677-
max-width: calc(100% - 41px);
678677
display: block;
679678
}
680679

Diff for: src/test/rustdoc-gui/notable-trait.goml

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ assert-position: (
8383
)
8484

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

0 commit comments

Comments
 (0)