Skip to content

Commit 27ff258

Browse files
Fix height for the source sidebar in mobile mode
1 parent 66c83ff commit 27ff258

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1772,9 +1772,11 @@ details.rustdoc-toggle[open] > summary.hideme::after {
17721772
/* The source view uses a different design for the sidebar toggle, and doesn't have a topbar,
17731773
so don't bump down the main content or the sidebar. */
17741774
.source main,
1775-
.source .sidebar {
1775+
.rustdoc.source .sidebar {
17761776
top: 0;
17771777
padding: 0;
1778+
height: 100vh;
1779+
border: 0;
17781780
}
17791781

17801782
.sidebar.shown,

0 commit comments

Comments
 (0)