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 GitHub
parent 7320e6f9fd
commit 06e6d225a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;
}