about summary refs log tree commit diff
path: root/src/test
diff options
context:
space:
mode:
authorJacob Hoffman-Andrews <github@hoffman-andrews.com>2022-01-28 05:21:34 -0800
committerJacob Hoffman-Andrews <github@hoffman-andrews.com>2022-01-31 01:46:10 -0800
commitc790128c3c2c26a4ca347fd68cffd4000ecb3295 (patch)
tree2a14604da16e74835eb500eab996fe87d56caf65 /src/test
parente0e70c0c2c4fc8d150a56c181994e3a3b3e9999a (diff)
Improve wrapping on settings page
Previously, the radio button choices for themes would wrap awkwardly on
narrow screens. With this change, the group of choices will prefer
bumping down to the next line together, leaving the setting name on its
own line.

Also fix some minor spacing issues:

 - Align the setting name vertically with the radio button choices.
 - Use margin instead of padding for most spacing choices.
 - Use no margin/padding on the right-hand side.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/rustdoc-gui/mobile.goml6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/rustdoc-gui/mobile.goml b/src/test/rustdoc-gui/mobile.goml
index acde1123925..9edf662976d 100644
--- a/src/test/rustdoc-gui/mobile.goml
+++ b/src/test/rustdoc-gui/mobile.goml
@@ -15,3 +15,9 @@ assert-css: (".content .out-of-band .since::before", { "content": "\"Since \"" }
 
 size: (1000, 1000)
 assert-css-false: (".content .out-of-band .since::before", { "content": "\"Since \"" })
+
+// On the settings page, the theme buttons should not line-wrap. Instead, they should
+// all be placed as a group on a line below the setting name "Theme."
+goto: file://|DOC_PATH|/settings.html
+size: (400, 600)
+compare-elements-position-near-false: ("#preferred-light-theme .setting-name", "#preferred-light-theme .choice", {"y": 16})