diff --git a/umap/static/umap/js/umap.controls.js b/umap/static/umap/js/umap.controls.js index 68e2030f..9ba1e37d 100644 --- a/umap/static/umap/js/umap.controls.js +++ b/umap/static/umap/js/umap.controls.js @@ -946,7 +946,9 @@ L.U.Map.include({ L.DomUtil.createLink( 'umap-user', rightContainer, - L._(`My Dashboard ({username})`, { username: this.options.user.name }), + L._(`My Dashboard ({username})`, { + username: this.options.user.name, + }), this.options.user.url ) } @@ -954,7 +956,7 @@ L.U.Map.include({ const controlEditCancel = L.DomUtil.createButton( 'leaflet-control-edit-cancel', rightContainer, - L._('Cancel edits'), + L.DomUtil.add('span', '', null, L._('Cancel edits')), this.askForReset, this ) diff --git a/umap/static/umap/map.css b/umap/static/umap/map.css index 5a8532e2..cf9bd419 100644 --- a/umap/static/umap/map.css +++ b/umap/static/umap/map.css @@ -1549,6 +1549,7 @@ a.add-datalayer:hover, @media all and (max-width: 980px) { + .umap-main-edit-toolbox .umap-user span, .leaflet-container .leaflet-control-edit-save span, .leaflet-container .leaflet-control-edit-disable span, .leaflet-container .leaflet-control-edit-cancel span { @@ -1565,6 +1566,10 @@ a.add-datalayer:hover, } } @media all and (max-width: 640px) { + .umap-main-edit-toolbox .umap-user { + display: none; + } + .umap-main-edit-toolbox .map-name { max-width: 150px; }