From 022b8cdb626a27fad4d0f2567f43da7ce3ce9cef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Kr=C3=B6g?= Date: Sun, 14 Feb 2021 21:06:01 +0100 Subject: [PATCH] Fix layout of overview map The button should not change its position when the collapsed state changes. The overview map had a somewhat larger padding at the bottom due to being an inline-block element and the configured line-height of 1.5. --- src/ol/ol.css | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ol/ol.css b/src/ol/ol.css index 8c51bdad8c..1f6dfd7f93 100644 --- a/src/ol/ol.css +++ b/src/ol/ol.css @@ -245,7 +245,7 @@ } .ol-overviewmap .ol-overviewmap-map, .ol-overviewmap button { - display: inline-block; + display: block; } .ol-overviewmap .ol-overviewmap-map { border: 1px solid #7b98bc; @@ -253,8 +253,8 @@ margin: 2px; width: 150px; } -.ol-overviewmap:not(.ol-collapsed) button{ - bottom: 1px; +.ol-overviewmap:not(.ol-collapsed) button { + bottom: 2px; left: 2px; position: absolute; }