Skip to content

Commit

Permalink
Rollup merge of rust-lang#102066 - notriddle:notriddle/headers-max-wi…
Browse files Browse the repository at this point in the history
…dth, 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.
  • Loading branch information
matthiaskrgr authored Sep 22, 2022
2 parents a197d29 + f528d49 commit 39fe599
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/librustdoc/html/static/css/rustdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,6 @@ h2.location a {
}

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

Expand Down
2 changes: 1 addition & 1 deletion src/test/rustdoc-gui/notable-trait.goml
Original file line number Diff line number Diff line change
Expand Up @@ -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']",
Expand Down

0 comments on commit 39fe599

Please sign in to comment.