[openstreetmap/openstreetmap-website] Have two columns for layer buttons between small and medium screen widths (PR #4760)

Anton Khorev notifications at github.com
Mon May 6 12:33:29 UTC 2024


[Originally](https://github.com/openstreetmap/openstreetmap-website/pull/3620) I wanted smaller buttons but that's not easy to do if I'm not allowed to check their widths. Then let's at least not have overly wide buttons when the screen is about 700px wide.

Before:
![image](https://github.com/openstreetmap/openstreetmap-website/assets/4158490/8ed26af6-5e74-4d6c-9192-99b7fce2c2fb)

After:
![image](https://github.com/openstreetmap/openstreetmap-website/assets/4158490/143cda67-3783-49e5-beb6-a27b5f74e953)

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

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

-- Commit Summary --

  * Have two columns for layer buttons between small and medium screen widths

-- File Changes --

    M app/assets/javascripts/leaflet.layers.js (11)
    M app/assets/stylesheets/common.scss (2)

-- Patch Links --

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

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

Message ID: <openstreetmap/openstreetmap-website/pull/4760 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240506/10acf84c/attachment.htm>


More information about the rails-dev mailing list