[openstreetmap/openstreetmap-website] Show/hide "Where is this?" when setting search value from directions (PR #5096)

Anton Khorev notifications at github.com
Mon Aug 19 17:15:28 UTC 2024


Fix for #5088.

If the "From" value is long enough [like this](https://www.openstreetmap.org/directions?from=7%2C%20Bell%20Yard%2C%20Gray%27s%20Inn%2C%20Holborn%2C%20London%2C%20Greater%20London%2C%20England%2C%20WC2A%202JR%2C%20United%20Kingdom) and you close the directions form, you'll get the search value overlapping with "Where is this?".

![image](https://github.com/user-attachments/assets/712dae62-4e43-4032-b27f-92da4aa9ec1f)
![image](https://github.com/user-attachments/assets/568f98b2-07ab-4a72-af5f-dd71cbcb7e51)

Also sometimes it's possible to delete the value, close the directions and get a blank search input without "Where is this?".

You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/openstreetmap-website/pull/5096

-- Commit Summary --

  * Show/hide "Where is this?" when setting search value from directions

-- File Changes --

    M app/assets/javascripts/index/directions.js (1)

-- Patch Links --

https://github.com/openstreetmap/openstreetmap-website/pull/5096.patch
https://github.com/openstreetmap/openstreetmap-website/pull/5096.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5096
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/5096 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240819/86d2f53b/attachment.htm>


More information about the rails-dev mailing list