diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-02-02 07:11:06 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-02 07:11:06 +0100 |
| commit | 2484cb8327e3138ac8d7ca32b372a6ddaa928339 (patch) | |
| tree | fd6f5f8d24eb85822322b90383c4f9a11c1dbe33 /src/test | |
| parent | 8ede21b09ce7130a1453bfaa5e889fc2a7ae3ac8 (diff) | |
| parent | c790128c3c2c26a4ca347fd68cffd4000ecb3295 (diff) | |
Rollup merge of #93420 - jsha:adjust-settings-layout, r=GuillaumeGomez
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. Demo: https://rustdoc.crud.net/jsha/adjust-settings-layout/settings.html r? ``@GuillaumeGomez`` Before (narrow screen):  After (narrow screen): 
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/rustdoc-gui/mobile.goml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/rustdoc-gui/mobile.goml b/src/test/rustdoc-gui/mobile.goml index 8f9c9248f5f..7be46a613c4 100644 --- a/src/test/rustdoc-gui/mobile.goml +++ b/src/test/rustdoc-gui/mobile.goml @@ -19,3 +19,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}) |
