From 8b1b36f74000e8403fe8aac050b778c537007b1d Mon Sep 17 00:00:00 2001 From: David Larlet Date: Fri, 2 Jun 2023 14:24:28 -0400 Subject: [PATCH] Fix width of columns in popups and tables See https://umap.openstreetmap.fr/en/map/example01_923828#5/53.606/9.009 for example --- umap/static/umap/map.css | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/umap/static/umap/map.css b/umap/static/umap/map.css index 66c4ea30..6aed75b1 100644 --- a/umap/static/umap/map.css +++ b/umap/static/umap/map.css @@ -1318,10 +1318,19 @@ a.add-datalayer:hover, min-width: 310px; max-width: 100%; } -.umap-popup-content th, +.umap-popup-content tr:nth-child(odd) { + background-color: #f6f6f6; +} +.umap-popup-content th { + text-align: left; +} .umap-popup-content td { word-break: break-word; } +.umap-popup-content th, +.umap-popup-content td { + padding: 1px 3px; +} .umap-popup-container { flex-grow: 1; padding: 0 10px;