diff --git a/src/librustdoc/html/static/css/rustdoc.css b/src/librustdoc/html/static/css/rustdoc.css
index 38154dee3e287..4ee2c153767e8 100644
--- a/src/librustdoc/html/static/css/rustdoc.css
+++ b/src/librustdoc/html/static/css/rustdoc.css
@@ -2227,10 +2227,14 @@ in src-script.js and main.js
left: -11px;
}
- /* We don't display these buttons on mobile devices. */
- #copy-path, #help-button {
+ /* On mobile, don't show keyboard shortcuts */
+ .shortcuts {
display: none;
}
+ /* since the keyboard shortcuts aren't shown, allow the search tricks to use the full width */
+ div#help div.side-by-side > div {
+ width: 100%;
+ }
/* sidebar button becomes topbar button */
#sidebar-button > a:before {