Merge pull request #1637 from umap-project/fix-iconurl-order

fix: picto category title was added after the related pictograms
This commit is contained in:
Yohan Boniface 2024-02-20 14:39:37 +01:00 committed by GitHub
commit 76ed2200cf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -672,9 +672,9 @@ L.FormBuilder.IconUrl = L.FormBuilder.BlurInput.extend({
}, },
addCategory: function (items, name) { addCategory: function (items, name) {
const parent = L.DomUtil.create('div', 'umap-pictogram-category'), const parent = L.DomUtil.create('div', 'umap-pictogram-category')
grid = L.DomUtil.create('div', 'umap-pictogram-grid', parent)
if (name) L.DomUtil.add('h6', '', parent, name) if (name) L.DomUtil.add('h6', '', parent, name)
const grid = L.DomUtil.create('div', 'umap-pictogram-grid', parent)
let status = false let status = false
for (let item of items) { for (let item of items) {
status = this.addIconPreview(item, grid) || status status = this.addIconPreview(item, grid) || status