Skip to content

Commit 59bdc04

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 f97b3c6 commit 59bdc04

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
@@ -2512,7 +2512,10 @@ in src-script.js and main.js
25122512
z-index: 11;
25132513
/* Reduce height slightly to account for mobile topbar. */
25142514
height: calc(100vh - 45px);
2515-
width: 200px;
2515+
width: 100%;
2516+
}
2517+
.sidebar-elems .block li a {
2518+
white-space: wrap;
25162519
}
25172520

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

0 commit comments

Comments
 (0)