diff --git a/umap/static/umap/js/umap.controls.js b/umap/static/umap/js/umap.controls.js index 30e58fef..9b2358a6 100644 --- a/umap/static/umap/js/umap.controls.js +++ b/umap/static/umap/js/umap.controls.js @@ -722,7 +722,6 @@ const ControlsMixin = { } else { L.DomUtil.add('p', '', credits, L._('No licence has been set')) } - L.DomUtil.create('hr', '', credits) title = L.DomUtil.create('h5', '', credits) title.textContent = L._('Map background credits') const tilelayerCredit = L.DomUtil.create('p', '', credits) @@ -736,7 +735,6 @@ const ControlsMixin = { parent: tilelayerCredit, safeHTML: this.selected_tilelayer.getAttribution(), }) - L.DomUtil.create('hr', '', credits) const urls = { leaflet: 'http://leafletjs.com', django: 'https://www.djangoproject.com', diff --git a/umap/static/umap/map.css b/umap/static/umap/map.css index 36c51cff..666694f1 100644 --- a/umap/static/umap/map.css +++ b/umap/static/umap/map.css @@ -158,6 +158,12 @@ margin-bottom: 5px!important; padding: 0.5rem; } +.credits-container h5 { + margin-bottom: 5px; +} +.credits-container p { + margin-top: 5px; +} .attribution-toggle { display: none; width: 24px;