Skip to content

[2.x] Fix lopsided post divider on mobile#4691

Merged
imorland merged 1 commit into
flarum:2.xfrom
karl-bullock:fix/mobile-post-divider-width
Jun 7, 2026
Merged

[2.x] Fix lopsided post divider on mobile#4691
imorland merged 1 commit into
flarum:2.xfrom
karl-bullock:fix/mobile-post-divider-width

Conversation

@karl-bullock

Copy link
Copy Markdown
Contributor

Fixes #4690

Changes proposed in this pull request:
The divider between posts (.PostStream-item::after) is calc(100% - var(--post-padding)) wide and left-aligned, which matches .Post's 20px right padding on desktop. On phones .Post drops its right padding, so the post content goes full width while the divider stays 20px short on the right - at 390px wide that's a 15px gap on the left vs 35px on the right.

This makes the divider full width inside the existing @media @phone block, so it lines up with the post content again. Desktop is untouched.

Reviewers should focus on:
Checked at 390px in Chrome device emulation against current 2.x-dev and the same rule in rc.1: gaps go from 15/35 to 15/15. Nothing else uses that ::after.

Screenshot
Before/after measurements are in #4690, can add actual screenshots if wanted.

The divider between posts is 20px short on the right to line up with
.Post's right padding, but on phones that padding is removed, leaving
the divider narrower than the post content. Make it full width at
phone sizes.

Fixes flarum#4690
@karl-bullock karl-bullock requested a review from a team as a code owner June 5, 2026 03:10
@karl-bullock karl-bullock changed the title Fix lopsided post divider on mobile [2.x] Fix lopsided post divider on mobile Jun 5, 2026
@imorland imorland added this to the 2.0.0-rc.3 milestone Jun 7, 2026
@imorland imorland merged commit bfbffc6 into flarum:2.x Jun 7, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[2.x] Post divider is lopsided on mobile (stops 20px short on the right)

2 participants