-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
12363 update paragraph spacing on journal table #12435
Conversation
changed to a generic spaced-paragraph-table utility class. let me know if you want any further changes. |
Rather than adding a one-off class for this, let's do some digging to determine why and how the margin is being removed in the first place. We can attribute the style to this rule in netbox/netbox/project-static/styles/netbox.scss Lines 232 to 235 in 78ec3a6
Running git blame on this file show that the change was part of a large array of changes two years ago, likely when the v3.0 UI was still being refined. So I think it's reasonable to just remove it entirely. If complaints arise that this results in suboptimal rendering elsewhere in the UI, we can then add a "condensed" class to remove the margin where needed. |
I actually remember now why we added this. Rendered Markdown text, even a single line, always creates a I wonder if we can easily apply the rule only to the last |
I'm not really a CSS aficionado, but the :last-child pseudo-class would probably work. |
Thanks @arthanson! |
Fixes: #12363
Updates paragraph spacing on journal table so comments are shown correctly spaced. Only effects journal-table as other tables should display with condensed paragraphs.