smeijer / leaflet-geosearch

A geocoding/address-lookup library supporting various api providers.
https://smeijer.github.io/leaflet-geosearch/
MIT License
1.04k stars 273 forks source link

fix: set height of search box to match surrounding boxes #322

Closed paulschreiber closed 2 years ago

paulschreiber commented 2 years ago

Before:

image

After:

image
smeijer commented 2 years ago

It always did match, so something else changed as well. Did another leaflet version impact the size of the search and x icon? I'd love to apply a fix for this, but just bumping the pixels will break other environments.

I think we should do something with a flex box, giving the container a fixed height, and making the child elements center align within that. What do you think?

smeijer commented 2 years ago

Thanks, I'm going with it and get this merged :)

smeijer commented 2 years ago

@all-contributors please add @paulschreiber for code

allcontributors[bot] commented 2 years ago

@smeijer

I've put up a pull request to add @paulschreiber! :tada:

smeijer commented 2 years ago

:tada: This PR is included in version 3.7.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: