Improve profile parameters layout: button always visible, smaller font

- Flexbox layout with scrolling inner content instead of whole tab
- same smaller font size like in layers tab, small input fields
This commit is contained in:
Norbert Renner 2019-11-13 10:44:34 +01:00
parent ad40459be7
commit 4efa6247aa
3 changed files with 16 additions and 14 deletions

View file

@ -217,7 +217,7 @@ BR.Profile = L.Evented.extend({
if (paramType == 'select') {
var select = document.createElement('select');
select.name = paramName;
select.className = 'form-control';
select.className = 'form-control form-control-sm';
label.htmlFor = select.id = 'customize-profile-' + paramName;
var paramValues = params[param].possible_values;
@ -238,7 +238,7 @@ BR.Profile = L.Evented.extend({
if (paramType == 'number') {
input.type = 'number';
input.value = params[param].value;
input.className = 'form-control';
input.className = 'form-control form-control-sm';
label.append(paramName);
div.appendChild(label);