For better UX consistency, this PR replaces alert() by a centered Bootstrap 
modal window. It's currently used for map export messages only.

Before:

<img width="744" height="399" alt="image" 
src="https://github.com/user-attachments/assets/4537694d-fb22-4ce5-8eff-a7d996ba22cd"
 />


After:

<img width="744" height="399" alt="image" 
src="https://github.com/user-attachments/assets/d2bc7553-8efd-4c3a-bda7-9a753bec51f2"
 />

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

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

-- Commit Summary --

  * Bootstrap modal instead of alert()

-- File Changes --

    M app/assets/javascripts/download_util.js (11)
    M app/views/layouts/_header.html.erb (16)
    M config/locales/en.yml (2)

-- Patch Links --

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

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

Message ID: <openstreetmap/openstreetmap-website/pull/6...@github.com>
_______________________________________________
rails-dev mailing list
rails-dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/rails-dev

Reply via email to