diff --git a/umap/static/umap/js/umap.controls.js b/umap/static/umap/js/umap.controls.js index 486cea80..16a34bb8 100644 --- a/umap/static/umap/js/umap.controls.js +++ b/umap/static/umap/js/umap.controls.js @@ -359,9 +359,9 @@ L.U.MoreControls = L.Control.extend({ }, onAdd: function () { - const container = L.DomUtil.create('div', ''), - more = L.DomUtil.create('a', 'umap-control-more umap-control-text', container), - less = L.DomUtil.create('a', 'umap-control-less umap-control-text', container) + const container = L.DomUtil.create('div', 'umap-control-text'), + more = L.DomUtil.create('a', 'umap-control-more', container), + less = L.DomUtil.create('a', 'umap-control-less', container) more.href = '#' more.title = L._('More controls') diff --git a/umap/static/umap/map.css b/umap/static/umap/map.css index 3f71f6e2..a780cc3c 100644 --- a/umap/static/umap/map.css +++ b/umap/static/umap/map.css @@ -58,10 +58,10 @@ a.umap-control-less { .umap-control-more, .umap-control-less { background-image: url('./img/24-white.svg'); - background-position: -109px -476px; + background-position: -108px -476px; } .umap-control-less { - background-position: -73px -475px; + background-position: -72px -474px; } .umap-more-controls .display-on-more, .umap-more-controls .umap-control-less { @@ -101,12 +101,7 @@ a.umap-control-less { .leaflet-control-search a.loading { background-image: url('./img/search.gif'); } -a.umap-control-text { - float: right; - margin: 0; - width: 36px; - height: 23px; - line-height: 23px; +.umap-control-text { border: 1px solid #444; border-radius: 2px; background-color: #666; @@ -114,6 +109,13 @@ a.umap-control-text { text-align: center; font-size: 0.8em; } +.umap-control-text a { + float: right; + margin: 0; + width: 36px; + height: 23px; + line-height: 23px; +} .leaflet-control-edit-enable a { background-position: 0 0; background-color: #353c3e;