From 729049aa04077548f896a1cd6ef4e09174b4d922 Mon Sep 17 00:00:00 2001 From: Binnette Date: Thu, 9 Apr 2020 10:28:47 +0200 Subject: [PATCH] Responsive images --- umap/static/umap/map.css | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/umap/static/umap/map.css b/umap/static/umap/map.css index c77bb0bd..45e1cd2a 100644 --- a/umap/static/umap/map.css +++ b/umap/static/umap/map.css @@ -1294,7 +1294,6 @@ a.add-datalayer:hover, } .umap-popup-container { flex-grow: 1; - text-align: justify; padding: 0 10px; } .leaflet-popup-content h3 { @@ -1312,18 +1311,13 @@ a.add-datalayer:hover, .leaflet-contextmenu-icon { display: none; } -.umap-popup-content img { - max-width: 300px !important; - width: 100%; -} .umap-popup-large iframe, .umap-popup-large img { /* See https://github.com/Leaflet/Leaflet/commit/61d746818b99d362108545c151a27f09d60960ee#commitcomment-6061847 */ max-width: 500px !important; } -#umap-ui-container .umap-popup-content img { - max-width: 400px !important; - width: 100% +.umap-popup-content img { + max-width: 100%; } .umap-georss-link .popup-title { text-align: center;