From 3037128540d5e6a22046c8e73b9f1caf1454d3db Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Fri, 21 Jun 2024 15:14:27 +0200 Subject: [PATCH] fix: add icon to "edit map details" panel title --- umap/static/umap/img/16-white.svg | 4 +--- umap/static/umap/img/source/16-white.svg | 6 ++---- umap/static/umap/js/umap.js | 3 +-- 3 files changed, 4 insertions(+), 9 deletions(-) diff --git a/umap/static/umap/img/16-white.svg b/umap/static/umap/img/16-white.svg index b47da5c8..7b537b2c 100644 --- a/umap/static/umap/img/16-white.svg +++ b/umap/static/umap/img/16-white.svg @@ -22,6 +22,7 @@ +   @@ -44,8 +45,6 @@ - - @@ -117,7 +116,6 @@ - diff --git a/umap/static/umap/img/source/16-white.svg b/umap/static/umap/img/source/16-white.svg index 34d7b53f..2737b5de 100644 --- a/umap/static/umap/img/source/16-white.svg +++ b/umap/static/umap/img/source/16-white.svg @@ -16,7 +16,7 @@ - + @@ -40,6 +40,7 @@ +   @@ -63,8 +64,6 @@ - - @@ -139,7 +138,6 @@ - diff --git a/umap/static/umap/js/umap.js b/umap/static/umap/js/umap.js index f91f2461..89e17cd4 100644 --- a/umap/static/umap/js/umap.js +++ b/umap/static/umap/js/umap.js @@ -1535,8 +1535,7 @@ U.Map = L.Map.extend({ const container = L.DomUtil.create('div', 'umap-edit-container') const metadataFields = ['options.name', 'options.description'] - const title = L.DomUtil.create('h3', '', container) - title.textContent = L._('Edit map details') + L.DomUtil.createTitle(container, L._('Edit map details'), 'icon-caption') const builder = new U.FormBuilder(this, metadataFields, { className: 'map-metadata', })