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.
This commit is contained in:
Maximilian Krög
2021-02-14 21:06:01 +01:00
parent 73d288c191
commit 022b8cdb62
+3 -3
View File
@@ -245,7 +245,7 @@
} }
.ol-overviewmap .ol-overviewmap-map, .ol-overviewmap .ol-overviewmap-map,
.ol-overviewmap button { .ol-overviewmap button {
display: inline-block; display: block;
} }
.ol-overviewmap .ol-overviewmap-map { .ol-overviewmap .ol-overviewmap-map {
border: 1px solid #7b98bc; border: 1px solid #7b98bc;
@@ -253,8 +253,8 @@
margin: 2px; margin: 2px;
width: 150px; width: 150px;
} }
.ol-overviewmap:not(.ol-collapsed) button{ .ol-overviewmap:not(.ol-collapsed) button {
bottom: 1px; bottom: 2px;
left: 2px; left: 2px;
position: absolute; position: absolute;
} }