We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e81f2f9 + 1564305 commit 151ba52Copy full SHA for 151ba52
src/librustdoc/html/static/css/settings.css
@@ -41,9 +41,7 @@
41
42
.toggle {
43
position: relative;
44
- display: inline-block;
45
width: 100%;
46
- height: 27px;
47
margin-right: 20px;
48
display: flex;
49
align-items: center;
@@ -58,6 +56,7 @@
58
56
.slider {
59
57
60
width: 45px;
+ min-width: 45px;
61
display: block;
62
height: 28px;
63
src/test/rustdoc-gui/settings.goml
@@ -147,3 +147,12 @@ assert-false: "noscript section"
147
javascript: false
148
reload:
149
assert-css: ("noscript section", {"display": "block"})
150
+javascript: true
151
+
152
+// Check for the display on small screen
153
+show-text: true
154
+reload:
155
+size: (300, 1000)
156
+click: "#settings-menu"
157
+wait-for: "#settings"
158
+assert-css: ("#settings .slider", {"width": "45px"}, ALL)
0 commit comments