Skip to content

Commit e5261c0

Browse files
committed
rustdoc: Fix broken CSS in search results
The layout is currently broken for struct/union fields and enum variants in the search results when searching from a struct, union or enum page.
1 parent 3f977ba commit e5261c0

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
@@ -695,7 +695,7 @@ span.since {
695695
margin-bottom: 25px;
696696
}
697697

698-
.enum .variant, .struct .structfield, .union .structfield {
698+
#main > .variant, #main > .structfield {
699699
display: block;
700700
}
701701

0 commit comments

Comments
 (0)