[openstreetmap/openstreetmap-website] fixed the text position in sidebar (PR #3916)
Andy Allan
notifications at github.com
Wed Feb 8 14:59:11 UTC 2023
Unfortunately it's not quite this simple!
We have a sidebar that includes padding by default. Some contents of the sidebar, however, are designed to stretch right to the edges, and so they require a negative padding. This is usually where we have a list of items separated by horizontal lines, for example geocoding search results, or changeset lists (like here).
If you remove the negative padding, then neither the horizontal separator line, nor the hover highlighting, meet the edge of the sidebar, and also the content gets double-padded. See this image:

What you need to do to fix this is change the error messages, so that if any of them are shown the message is wrapped in an element with the correct padding.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/3916#issuecomment-1422729175
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/3916/c1422729175 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20230208/c90b59f9/attachment.htm>
More information about the rails-dev
mailing list