Skip to content

Commit 94558c5

Browse files
committed
rustdoc: on mobile, make the sidebar full width and linewrap
this is because the mobile sidebar cannot be resized, unlike on desktop.
1 parent ae9173d commit 94558c5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2506,7 +2506,10 @@ in src-script.js and main.js
25062506
z-index: 11;
25072507
/* Reduce height slightly to account for mobile topbar. */
25082508
height: calc(100vh - 45px);
2509-
width: 200px;
2509+
width: 100%;
2510+
}
2511+
.sidebar-elems .block li a {
2512+
white-space: wrap;
25102513
}
25112514

25122515
/* The source view uses a different design for the sidebar toggle, and doesn't have a topbar,

0 commit comments

Comments
 (0)