Skip to content

Adjust margin-bottom for paragraphs and list items#66

Open
zerosonesfun wants to merge 1 commit intoFriendsOfFlarum:2.xfrom
zerosonesfun:2.x
Open

Adjust margin-bottom for paragraphs and list items#66
zerosonesfun wants to merge 1 commit intoFriendsOfFlarum:2.xfrom
zerosonesfun:2.x

Conversation

@zerosonesfun
Copy link
Copy Markdown

Changes proposed in this pull request:
Added negative margin-bottom to paragraphs and list items. Due to Flarum's general LESS/CSS and how this extension works, pages end up with duplicate bottom margin for paragraphs and lists. By adding negative bottom margin, we reverse this. Now there is a normal amount of paragraph and list spacing for pages. This only targets pages; does not affect the rest of the forum.

Reviewers should focus on:
Installing this extension with and without the negative margin-bottom to see the difference.

Confirmed

  • Frontend changes: tested on a local Flarum installation.
  • Backend changes: none.

Added negative margin-bottom to paragraphs and list items.
@zerosonesfun zerosonesfun requested a review from a team as a code owner March 17, 2026 13:28
Copy link
Copy Markdown
Contributor

@rafaucau rafaucau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! Unfortunately, this doesn't fully resolve the issue — as you can see in the screenshot, there's now an unwanted scrollbar appearing.

I'd suggest a different approach: instead of using negative margins (which can cause side effects like this), try overriding the styles more cleanly — for example, reducing line-height and zeroing out the margins properly. Negative margin hacks tend to break layout in unexpected ways.

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants