diff --git a/umap/static/umap/css/form.css b/umap/static/umap/css/form.css index 22bf7388..65ae68e5 100644 --- a/umap/static/umap/css/form.css +++ b/umap/static/umap/css/form.css @@ -487,15 +487,12 @@ i.info { padding: 0 5px; } .flat-tabs { - display: none; + display: flex; justify-content: space-around; font-size: 1.2em; margin-bottom: 20px; border-bottom: 1px solid #bebebe; } -.flat-tabs:has(.flat) { - display: flex; -} .flat-tabs button { padding: 10px; text-decoration: none; diff --git a/umap/static/umap/js/modules/form/fields.js b/umap/static/umap/js/modules/form/fields.js index 9bbef4ec..130b0d85 100644 --- a/umap/static/umap/js/modules/form/fields.js +++ b/umap/static/umap/js/modules/form/fields.js @@ -805,7 +805,7 @@ Fields.IconUrl = class extends Fields.BlurInput { categories[category] = categories[category] || [] categories[category].push(props) } - const sorted = Object.entries(categories).toSorted(([a], [b]) => + const sorted = Object.entries(categories).sort(([a], [b]) => Utils.naturalSort(a, b, U.lang) ) for (const [name, items] of sorted) {