Skip to content

Commit fde6927

Browse files
committed
Auto merge of #80412 - GuillaumeGomez:fix-search-section-pos, r=jyn514
Fix search section position on small devices Fixes #79526. This is exactly the same issue fixed in 9c36491 (in #79936) but applied to the search section. When the width becomes too small, the search input goes on its own line to get more space, making it go "under" the section following (so either "main" or "search"). The fix is to simply make the section go more under so that it doesn't go over the search input. r? `@jyn514`
2 parents fd85ca0 + 2ab3651 commit fde6927

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/librustdoc/html/static/rustdoc.css

+4-1
Original file line numberDiff line numberDiff line change
@@ -1582,7 +1582,10 @@ h4 > .notable-traits {
15821582
height: 73px;
15831583
}
15841584

1585-
#main {
1585+
/* This is to prevent the search bar from being underneath the <section>
1586+
* element following it.
1587+
*/
1588+
#main, #search {
15861589
margin-top: 100px;
15871590
}
15881591

0 commit comments

Comments
 (0)