browse datalayers overflow fix

In my previous improvement where I suggested to set the height of datalayers to the size of the content and add a resize handle i neglected the case where a very long list of layers could make the control unusable by overflowing the available screen space.

I suggest to reintroduce a maximum height so that we have a good compromize between resizing the datalayer list and the maximum possible size.
This commit is contained in:
pfbreton-perso 2023-06-16 15:20:17 -04:00 committed by David Larlet
parent 608c54d4bf
commit 5dd0c2394a
No known key found for this signature in database
GPG key ID: 3E2953A359E7E7BD

View file

@ -587,7 +587,8 @@ ul.photon-autocomplete {
border-radius: 2px;
}
.leaflet-control-browse .umap-browse-datalayers {
height: max-content;
height: fit-content;
max-height: 40em;
overflow-y: auto;
resize: vertical;
}