From 1d3e7c02550d39ffdde847e72d72c25b73c69f5d Mon Sep 17 00:00:00 2001 From: Ben Busby Date: Tue, 23 Nov 2021 12:27:59 -0700 Subject: [PATCH] Pin config buttons to bottom of config menu Previously the load/save/apply buttons in the config menu were hidden below all available config options and required the user to scroll to the bottom to save changes. This made for bad ux, since for new users, it isn't immediately apparent that selecting a new dropdown value, for instance, doesn't instantly save the new setting. The new layout should make it more clear that hitting "Apply" is required to save config changes. --- app/static/css/main.css | 10 +- app/templates/index.html | 278 ++++++++++++++++++++------------------- 2 files changed, 149 insertions(+), 139 deletions(-) diff --git a/app/static/css/main.css b/app/static/css/main.css index c937ee2..9801657 100644 --- a/app/static/css/main.css +++ b/app/static/css/main.css @@ -61,6 +61,15 @@ body { -webkit-appearance: none; } +.config-options { + max-height: 370px; + overflow-y: scroll; +} + +.config-buttons { + max-height: 30px; +} + .config-div { padding: 5px; } @@ -102,7 +111,6 @@ button::-moz-focus-inner { } .open { - overflow-y: scroll; padding-bottom: 20px; } diff --git a/app/templates/index.html b/app/templates/index.html index b61753c..e52e59e 100644 --- a/app/templates/index.html +++ b/app/templates/index.html @@ -84,145 +84,147 @@
-
- - -
— {{ translation['config-country-help'] }}
+
+
+ + +
— {{ translation['config-country-help'] }}
+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+ + + + + +
+ + +
+
+ + +
— {{ translation['config-alts-help'] }}
+
+
+ + +
+
+ + +
— {{ translation['config-images-help'] }}
+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + {{ translation['config-css'] }}: + + +
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
- - - - - -
- - -
-
- - -
— {{ translation['config-alts-help'] }}
-
-
- - -
-
- - -
— {{ translation['config-images-help'] }}
-
-
- - -
-
- - -
-
- - -
-
- - -
-
- - {{ translation['config-css'] }}: - - -
-
+