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.
This commit is contained in:
parent
e0e70c0c2c
commit
c790128c3c
3 changed files with 16 additions and 8 deletions
|
@ -376,7 +376,7 @@ impl Setting {
|
|||
description,
|
||||
),
|
||||
Setting::Select { js_data_name, description, default_value, ref options } => format!(
|
||||
"<div class=\"setting-line\"><div class=\"radio-line\" id=\"{}\"><span class=\"setting-name\">{}</span>{}</div></div>",
|
||||
"<div class=\"setting-line\"><div class=\"radio-line\" id=\"{}\"><span class=\"setting-name\">{}</span><div class=\"choices\">{}</div></div></div>",
|
||||
js_data_name,
|
||||
description,
|
||||
options
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue