fix: iconUrl field was broken on older browsers

fix #2554
This commit is contained in:
Yohan Boniface 2025-03-14 14:50:47 +01:00
parent 1b058ce862
commit f26536bff3
2 changed files with 2 additions and 5 deletions

View file

@ -487,15 +487,12 @@ i.info {
padding: 0 5px; padding: 0 5px;
} }
.flat-tabs { .flat-tabs {
display: none; display: flex;
justify-content: space-around; justify-content: space-around;
font-size: 1.2em; font-size: 1.2em;
margin-bottom: 20px; margin-bottom: 20px;
border-bottom: 1px solid #bebebe; border-bottom: 1px solid #bebebe;
} }
.flat-tabs:has(.flat) {
display: flex;
}
.flat-tabs button { .flat-tabs button {
padding: 10px; padding: 10px;
text-decoration: none; text-decoration: none;

View file

@ -805,7 +805,7 @@ Fields.IconUrl = class extends Fields.BlurInput {
categories[category] = categories[category] || [] categories[category] = categories[category] || []
categories[category].push(props) 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) Utils.naturalSort(a, b, U.lang)
) )
for (const [name, items] of sorted) { for (const [name, items] of sorted) {