diff --git a/umap/static/umap/base.css b/umap/static/umap/base.css index 3b2608c6..e4d9eed4 100644 --- a/umap/static/umap/base.css +++ b/umap/static/umap/base.css @@ -500,6 +500,17 @@ i.info { .umap-edit-actions li:hover { background-color: #353c3e; } +.permissions-panel, +.umap-upload, +.umap-share, +.umap-edit-container, +.umap-datalayer-container, +.umap-layer-properties-container, +.umap-footer-container, +.umap-browse-data, +.umap-browse-datalayers { + padding: 0 10px; +} .umap-form-iconfield { position: relative; overflow: hidden; @@ -589,7 +600,7 @@ input[type=hidden].blur + .button { top: 0; bottom: 0; right: -400px; - padding: 0 20px; + padding: 0 10px; border-left: 1px solid #ddd; overflow-x: auto; z-index: 1010; @@ -645,10 +656,10 @@ input[type=hidden].blur + .button { } #umap-ui-container .body { clear: both; - height: calc(100% - 46px); /* Minus size of toolbox */ + height: calc(100% - 54px); /* Minus size of toolbox */ } #umap-ui-container .toolbox { - padding: 5px 0; + padding: 5px 10px; overflow: hidden; } #umap-ui-container .toolbox li { diff --git a/umap/static/umap/js/umap.features.js b/umap/static/umap/js/umap.features.js index 8e46db01..54a0394c 100644 --- a/umap/static/umap/js/umap.features.js +++ b/umap/static/umap/js/umap.features.js @@ -85,7 +85,7 @@ L.U.FeatureMixin = { edit: function(e) { if(!this.map.editEnabled || this.isReadOnly()) return; - var container = L.DomUtil.create('div'); + var container = L.DomUtil.create('div', 'umap-datalayer-container'); var builder = new L.U.FormBuilder(this, ['datalayer'], { callback: function () {this.edit(e);} // removeLayer step will close the edit panel, let's reopen it diff --git a/umap/static/umap/js/umap.js b/umap/static/umap/js/umap.js index 09263f61..5f5cc0c1 100644 --- a/umap/static/umap/js/umap.js +++ b/umap/static/umap/js/umap.js @@ -1179,7 +1179,7 @@ L.U.Map.include({ edit: function () { if(!this.editEnabled) return; - var container = L.DomUtil.create('div'), + var container = L.DomUtil.create('div','umap-edit-container'), metadataFields = [ 'options.name', 'options.description' diff --git a/umap/static/umap/js/umap.layer.js b/umap/static/umap/js/umap.layer.js index dd9be047..a92faf29 100644 --- a/umap/static/umap/js/umap.layer.js +++ b/umap/static/umap/js/umap.layer.js @@ -717,7 +717,7 @@ L.U.DataLayer = L.Evented.extend({ edit: function () { if(!this.map.editEnabled || !this.isLoaded()) {return;} - var container = L.DomUtil.create('div'), + var container = L.DomUtil.create('div', 'umap-layer-properties-container'), metadataFields = [ 'options.name', 'options.description', diff --git a/umap/static/umap/js/umap.popup.js b/umap/static/umap/js/umap.popup.js index ce8de7c0..40bfe6e8 100644 --- a/umap/static/umap/js/umap.popup.js +++ b/umap/static/umap/js/umap.popup.js @@ -107,7 +107,8 @@ L.U.PopupTemplate.Default = L.Class.extend({ renderFooter: function () { if (this.feature.hasPopupFooter()) { - var footer = L.DomUtil.create('ul', 'umap-popup-footer', this.container), + var footerContainer = L.DomUtil.create('div', 'umap-footer-container', this.container), + footer = L.DomUtil.create('ul', 'umap-popup-footer', footerContainer), previousLi = L.DomUtil.create('li', 'previous', footer), zoomLi = L.DomUtil.create('li', 'zoom', footer), nextLi = L.DomUtil.create('li', 'next', footer), diff --git a/umap/static/umap/map.css b/umap/static/umap/map.css index 948a19d3..c77bb0bd 100644 --- a/umap/static/umap/map.css +++ b/umap/static/umap/map.css @@ -881,6 +881,7 @@ a.add-datalayer:hover, } .umap-caption { background-position: -170px -52px; + padding: 0 10px; } /* ********************************* */ @@ -1286,12 +1287,15 @@ a.add-datalayer:hover, overflow-x: hidden; margin-bottom: 4px; display: flex; + flex-direction: column; } .umap-popup-content iframe { min-width: 310px; } .umap-popup-container { flex-grow: 1; + text-align: justify; + padding: 0 10px; } .leaflet-popup-content h3 { margin-bottom: 0; @@ -1310,6 +1314,7 @@ a.add-datalayer:hover, } .umap-popup-content img { max-width: 300px !important; + width: 100%; } .umap-popup-large iframe, .umap-popup-large img { @@ -1318,6 +1323,7 @@ a.add-datalayer:hover, } #umap-ui-container .umap-popup-content img { max-width: 400px !important; + width: 100% } .umap-georss-link .popup-title { text-align: center;