File tree 3 files changed +25
-1
lines changed
src/librustdoc/html/static
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
1734
1734
top : 0 ;
1735
1735
}
1736
1736
1737
+ .hide-sidebar .mobile-topbar {
1738
+ display : none;
1739
+ }
1740
+
1737
1741
.sidebar-menu-toggle {
1738
1742
width : 45px ;
1739
1743
/* Rare exception to specifying font sizes in rem. Since this is acting
Original file line number Diff line number Diff line change 194
194
"default" : false ,
195
195
} ,
196
196
{
197
- "name" : "Hide navigation sidebar " ,
197
+ "name" : "Hide persistent navigation bar " ,
198
198
"js_name" : "hide-sidebar" ,
199
199
"default" : false ,
200
200
} ,
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