[openstreetmap/openstreetmap-website] add dir="auto" to paragraphs in rich_text.rb (PR #5835)
Anton Khorev
notifications at github.com
Sat Mar 22 15:02:13 UTC 2025
AntonKhorev left a comment (openstreetmap/openstreetmap-website#5835)
`text-align: start;` is the default value, unless you're in a `<li>`. Sidebar comments are in html lists, but should they? We don't output diary comments as a list.
If you view comments on [this page](https://www.openstreetmap.org/user/NeatNit/changeset_comments), you'll notice that adding `dir=auto` on paragraphs is enough for them to align properly.
I guess browsers change the alignment inside lists to keep the text next to the bullets, and even if we hide bullets, that alignment sticks.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5835#issuecomment-2745310604
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/5835/c2745310604 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250322/9cec7a35/attachment.htm>
More information about the rails-dev
mailing list