File tree Expand file tree Collapse file tree 3 files changed +25
-1
lines changed
src/librustdoc/html/static Expand file tree Collapse file tree 3 files changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -1734,6 +1734,10 @@ in src-script.js
17341734 top : 0 ;
17351735 }
17361736
1737+ .hide-sidebar .mobile-topbar {
1738+ display : none;
1739+ }
1740+
17371741 .sidebar-menu-toggle {
17381742 width : 45px ;
17391743 /* Rare exception to specifying font sizes in rem. Since this is acting
Original file line number Diff line number Diff line change 194194 "default" : false ,
195195 } ,
196196 {
197- "name" : "Hide navigation sidebar " ,
197+ "name" : "Hide persistent navigation bar " ,
198198 "js_name" : "hide-sidebar" ,
199199 "default" : false ,
200200 } ,
Original file line number Diff line number Diff line change 1+ // Checks sidebar resizing stays synced with the setting
2+ go-to: "file://" + |DOC_PATH| + "/test_docs/index.html"
3+ set-window-size: (400, 600)
4+
5+ // Verify that the "hide" option is unchecked
6+ click: "#settings-menu"
7+ wait-for: "#settings"
8+ assert-css: ("#settings", {"display": "block"})
9+ assert-property: ("#hide-sidebar", {"checked": "false"})
10+ assert-css: (".mobile-topbar", {"display": "flex"})
11+
12+ // Toggle it
13+ click: "#hide-sidebar"
14+ assert-property: ("#hide-sidebar", {"checked": "true"})
15+ assert-css: (".mobile-topbar", {"display": "none"})
16+
17+ // Toggle it again
18+ click: "#hide-sidebar"
19+ assert-property: ("#hide-sidebar", {"checked": "false"})
20+ assert-css: (".mobile-topbar", {"display": "flex"})
You can’t perform that action at this time.
0 commit comments