Skip to content

Commit 126af08

Browse files
authored
Auto merge of #34477 - ollie27:patch-1, r=GuillaumeGomez
rustdoc: Fix search result layout for enum variants and struct fields This was broken in #34234. For example: [before](https://doc.rust-lang.org/nightly/std/?search=cow%3A%3Aborrowed) [after](https://ollie27.github.io/rust_doc_test/std/?search=cow%3A%3Aborrowed) [before](https://doc.rust-lang.org/nightly/std/?search=range%3A%3Astart) [after](https://ollie27.github.io/rust_doc_test/std/?search=range%3A%3Astart) cc @GuillaumeGomez
2 parents f019e38 + 27e4ecd commit 126af08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustdoc/html/static/rustdoc.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@ span.since {
659659
margin-bottom: 25px;
660660
}
661661

662-
.variant, .structfield {
662+
.enum .variant, .struct .structfield {
663663
display: block;
664664
}
665665

0 commit comments

Comments
 (0)