Skip to content

Commit cce8023

Browse files
authored
Rollup merge of #93188 - jsha:fix-safari-bumpy-search, r=camelid
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`
2 parents 8491fb3 + bc8ef4c commit cce8023

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/librustdoc/html/templates/page.html

+1
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ <h2 class="location"></h2>
117117
</div> {#- -#}
118118
<form class="search-form"> {#- -#}
119119
<div class="search-container"> {#- -#}
120+
<span></span> {#- This empty span is a hacky fix for Safari - See #93184 -#}
120121
<input {# -#}
121122
class="search-input" {# -#}
122123
name="search" {# -#}

0 commit comments

Comments
 (0)