Skip to content

Commit

Permalink
Rollup merge of #93188 - jsha:fix-safari-bumpy-search, r=camelid
Browse files Browse the repository at this point in the history
rustdoc: fix bump down typing search on Safari

Fixes #93184.

For some reason, if the search input doesn't have a previous sibling, typing in the search box increases the search-container's size by about 5px on the bottom. Putting in a dummy sibling fixes it.

https://rustdoc.crud.net/jsha/fix-safari-bumpy-search/std/string/struct.String.html

r? `@camelid`
  • Loading branch information
matthiaskrgr authored Jan 24, 2022
2 parents 8491fb3 + bc8ef4c commit cce8023
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/librustdoc/html/templates/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ <h2 class="location"></h2>
</div> {#- -#}
<form class="search-form"> {#- -#}
<div class="search-container"> {#- -#}
<span></span> {#- This empty span is a hacky fix for Safari - See #93184 -#}
<input {# -#}
class="search-input" {# -#}
name="search" {# -#}
Expand Down

0 comments on commit cce8023

Please sign in to comment.