LemmyNet / lemmy-ui

The official web app for lemmy.
https://join-lemmy.org/
GNU Affero General Public License v3.0
900 stars 336 forks source link

Comment top-level lists are missing their paragraph margin #2163

Open Kissaki opened 1 year ago

Kissaki commented 1 year ago

Requirements

Summary

Paragraphs have a bottom padding - excluding the last paragraph.

image

Lists have CSS rules for having a bottom margin, but the comments render in a comment list, which makes comment-content top-level-lists that should have a bottom margin lose their bottom margin.

image

This makes for inconsistent and inaccessible reading and visuals.

Steps to Reproduce

  1. Post a comment with a list with following content

Technical Details

The relevant CSS declarations in darkly.css are https://github.com/LemmyNet/lemmy-ui/blob/8a2cd127ee02edc186488d7d0455c0679b83bab3/src/assets/css/themes/darkly.css#L292-L304

I would expect them to be defined for .md-div rather than globally - which would work for post content and comment content.

Lemmy Instance Version

0.18.4

Lemmy Instance URL

https://feddit.de

Kissaki commented 1 year ago

I would create a PR with suggested changes, but given that the rendered markdown style is not already defined for .md-div I don't know about possible side-effects - because this styling may apply to other types of lists in the UI outside of rendered markdown content.

Assuming the themes are kept relatively close declaration-wise, I assume this applies to all themes, not just darkly.

abhibeckert commented 8 months ago

Can this please be prioritised? It's really annoying and seems like such a simple fix.

As a workaround, I'm adding horizontal rules after every list... which at least makes comments readable but it's not a great solution.