From c59d25e93a1e7523e376f3749687b4fd5a04d410 Mon Sep 17 00:00:00 2001 From: Bofh Date: Mon, 19 Dec 2022 00:37:39 +0100 Subject: [PATCH] Order filter-users presets by "name" (asc) + little fixes --- css/base.php | 5 ++++- views/instance.php | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/css/base.php b/css/base.php index 346711d..e68b1b4 100644 --- a/css/base.php +++ b/css/base.php @@ -308,7 +308,10 @@ table.fields tr.verified td .fa.fa-check::before { } #window-instance #container .card { margin-bottom: 1em; - max-width: 40em; + max-width: 50em; +} +#window-instance #filters-all { + max-width: 50em; } #window-instance #container #new-accounts .card { width: calc(100vw - 4em); diff --git a/views/instance.php b/views/instance.php index c750b71..632ac5c 100644 --- a/views/instance.php +++ b/views/instance.php @@ -477,6 +477,7 @@ window.view.instance = { } E.custom.btncollapse_render(); http.get('api/v1/config/filters/get?type=users', {}, function(js) { + js = js.sort((a,b) => a.preset_name.localeCompare(b.preset_name)); window.vars.user_filters = js; E.template('filters-all', function(TPL) { var html = '';