[openstreetmap/openstreetmap-website] Fix whitespace in changeset element lists (PR #4570)

Anton Khorev notifications at github.com
Mon Mar 11 19:50:29 UTC 2024


Whitespace at the start of a list item becomes significant when element icons are added using `::before` pseudoelement. You can see the extra space when elements with/without icons are next to each other. I'm removing unnecessary whitespace inside `<li>` here.

Before:
![image](https://github.com/openstreetmap/openstreetmap-website/assets/4158490/37604b72-d796-4909-9100-923b1f584ee8)

After:
![image](https://github.com/openstreetmap/openstreetmap-website/assets/4158490/c602ec1a-3b9a-40f6-b6b4-0ba78c76a43d)

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

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

-- Commit Summary --

  * Fix whitespace in changeset element lists

-- File Changes --

    M app/views/changesets/show.html.erb (24)

-- Patch Links --

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

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

Message ID: <openstreetmap/openstreetmap-website/pull/4570 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240311/7bb63929/attachment.htm>


More information about the rails-dev mailing list