diff --git a/src/librustdoc/html/static/main.js b/src/librustdoc/html/static/main.js
index 7e613220f2d69..4dbe7a37fcdc8 100644
--- a/src/librustdoc/html/static/main.js
+++ b/src/librustdoc/html/static/main.js
@@ -1695,15 +1695,6 @@ function defocusSearchBar() {
search.innerHTML = output;
showSearchResults(search);
- var tds = search.getElementsByTagName("td");
- var td_width = 0;
- if (tds.length > 0) {
- td_width = tds[0].offsetWidth;
- }
- var width = search.offsetWidth - 40 - td_width;
- onEachLazy(search.getElementsByClassName("desc"), function(e) {
- e.style.width = width + "px";
- });
initSearchNav();
var elems = document.getElementById("titles").childNodes;
elems[0].onclick = function() { printTab(0); };
diff --git a/src/librustdoc/html/static/rustdoc.css b/src/librustdoc/html/static/rustdoc.css
index cb16dc588d383..d50fda278bd7c 100644
--- a/src/librustdoc/html/static/rustdoc.css
+++ b/src/librustdoc/html/static/rustdoc.css
@@ -1425,7 +1425,7 @@ h4 > .notable-traits {
margin-left: 0px;
}
- #main {
+ #main, #search {
margin-top: 45px;
padding: 0;
}
@@ -1579,7 +1579,7 @@ h4 > .notable-traits {
}
}
-@media (max-width: 416px) {
+@media (max-width: 464px) {
#titles, #titles > button {
height: 73px;
}