maplibre-gl-basemap-control 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -72,6 +72,14 @@
|
|
|
72
72
|
flex-direction: column;
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
+
/* When the user has resized the panel, honour the explicit width/height set
|
|
76
|
+
inline (already clamped to the map bounds in JS) instead of letting the
|
|
77
|
+
default caps shrink it back down. */
|
|
78
|
+
.basemap-control-panel.is-resized {
|
|
79
|
+
max-width: none;
|
|
80
|
+
max-height: none;
|
|
81
|
+
}
|
|
82
|
+
|
|
75
83
|
/* When the user has resized the panel to an explicit height, let the content
|
|
76
84
|
and results area flex to fill it instead of fitting the content. */
|
|
77
85
|
.basemap-control-panel.is-resized .basemap-control-content {
|
|
@@ -379,7 +387,7 @@
|
|
|
379
387
|
}
|
|
380
388
|
|
|
381
389
|
@media (max-width: 420px) {
|
|
382
|
-
.basemap-control-panel {
|
|
390
|
+
.basemap-control-panel:not(.is-resized) {
|
|
383
391
|
width: calc(100vw - 24px) !important;
|
|
384
392
|
}
|
|
385
393
|
|