From d0ce5f68cd2288a96c3389d03c143dbbc0cd7137 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Mon, 31 Jul 2023 11:34:25 +0200 Subject: [PATCH 1/2] adapt iframe min-width for popup large fix #1236 --- umap/static/umap/map.css | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/umap/static/umap/map.css b/umap/static/umap/map.css index ef430474..cd7f08d3 100644 --- a/umap/static/umap/map.css +++ b/umap/static/umap/map.css @@ -1415,10 +1415,10 @@ a.add-datalayer:hover, .leaflet-contextmenu-icon { display: none; } -.umap-popup-large iframe, -.umap-popup-large img { +.umap-popup-large iframe { /* See https://github.com/Leaflet/Leaflet/commit/61d746818b99d362108545c151a27f09d60960ee#commitcomment-6061847 */ - max-width: 500px !important; + max-width: 100% !important; + min-width: 500px; } .umap-popup-content img { max-width: 100%; From d8a1592fcf419a5e2c6c84e16af3afe73954f9a4 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Tue, 15 Aug 2023 08:31:14 +0200 Subject: [PATCH 2/2] Smaller iframe min-width for screen < 480px --- umap/static/umap/map.css | 3 +++ 1 file changed, 3 insertions(+) diff --git a/umap/static/umap/map.css b/umap/static/umap/map.css index cd7f08d3..c10c2d2b 100644 --- a/umap/static/umap/map.css +++ b/umap/static/umap/map.css @@ -1456,6 +1456,9 @@ a.add-datalayer:hover, .umap-permanent-credits-container { max-width: 100%; } + .umap-popup-large iframe { + min-width: 300px; + } } /* ****** */