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.
main
Ben Busby 2021-11-23 12:27:59 -07:00
parent a8afd49f84
commit 1d3e7c0255
No known key found for this signature in database
GPG Key ID: 339B7B7EB5333D14
2 changed files with 149 additions and 139 deletions

View File

@ -61,6 +61,15 @@ body {
-webkit-appearance: none; -webkit-appearance: none;
} }
.config-options {
max-height: 370px;
overflow-y: scroll;
}
.config-buttons {
max-height: 30px;
}
.config-div { .config-div {
padding: 5px; padding: 5px;
} }
@ -102,7 +111,6 @@ button::-moz-focus-inner {
} }
.open { .open {
overflow-y: scroll;
padding-bottom: 20px; padding-bottom: 20px;
} }

View File

@ -84,6 +84,7 @@
<div class="content"> <div class="content">
<div class="config-fields"> <div class="config-fields">
<form id="config-form" action="config" method="post"> <form id="config-form" action="config" method="post">
<div class="config-options">
<div class="config-div config-div-ctry"> <div class="config-div config-div-ctry">
<label for="config-ctry">{{ translation['config-country'] }}: </label> <label for="config-ctry">{{ translation['config-country'] }}: </label>
<select name="ctry" id="config-ctry"> <select name="ctry" id="config-ctry">
@ -222,7 +223,8 @@
{{ config.style.replace('\t', '') }} {{ config.style.replace('\t', '') }}
</textarea> </textarea>
</div> </div>
<div class="config-div"> </div>
<div class="config-div config-buttons">
<input type="submit" id="config-load" value="{{ translation['load'] }}">&nbsp; <input type="submit" id="config-load" value="{{ translation['load'] }}">&nbsp;
<input type="submit" id="config-submit" value="{{ translation['apply'] }}">&nbsp; <input type="submit" id="config-submit" value="{{ translation['apply'] }}">&nbsp;
<input type="submit" id="config-save" value="{{ translation['save-as'] }}"> <input type="submit" id="config-save" value="{{ translation['save-as'] }}">