Skip to content

Commit 0e4319b

Browse files
committed
rustdoc: fix and re-enable help widget on mobile
fixes rust-lang#77899
1 parent 02b1be1 commit 0e4319b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/librustdoc/html/static/css/rustdoc.css

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2227,10 +2227,14 @@ in src-script.js and main.js
22272227
left: -11px;
22282228
}
22292229

2230-
/* We don't display these buttons on mobile devices. */
2231-
#copy-path, #help-button {
2230+
/* On mobile, don't show keyboard shortcuts */
2231+
.shortcuts {
22322232
display: none;
22332233
}
2234+
/* since the keyboard shortcuts aren't shown, allow the search tricks to use the full width */
2235+
div#help div.side-by-side > div {
2236+
width: 100%;
2237+
}
22342238

22352239
/* sidebar button becomes topbar button */
22362240
#sidebar-button > a:before {

0 commit comments

Comments
 (0)