[openstreetmap/openstreetmap-website] add dir="auto" to paragraphs of formatted text (PR #5835)

Nitai Sasson notifications at github.com
Fri Mar 21 21:27:43 UTC 2025


NeatNit left a comment (openstreetmap/openstreetmap-website#5835)

Related to #3432, it seems that in the case of changeset comments, they are arranged in a list, and `text-align` is being set by the browser stylesheet (in Firefox at least) to `<li>` elements:

```css
li {
  display: list-item;
  text-align: match-parent;
}
```

This makes sense for lists in their usual setting but not so much in this case. So one possible solution is:

```css
li p {
	text-align: start;
}
```

So that paragraphs won't inherit the alignment from their parent too. But again, I'm not a web developer, so more professional discretion might be needed.

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

Message ID: <openstreetmap/openstreetmap-website/pull/5835/c2744480698 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250321/e56b8851/attachment-0001.htm>


More information about the rails-dev mailing list