Skip to content

Centre the phone's opening world equidistant top and bottom - #44

Merged
PouyanJay merged 1 commit into
mainfrom
mobile-center-world-equidistant
Jul 26, 2026
Merged

Centre the phone's opening world equidistant top and bottom#44
PouyanJay merged 1 commit into
mainfrom
mobile-center-world-equidistant

Conversation

@PouyanJay

Copy link
Copy Markdown
Owner

The opening frame reserved a fixed pill band, which over-reserved and pushed the world up (unequal margins). Now it measures the floating pills real top edge and frames into the space above it, so the world sits dead-centre: equal margins left/right and top/bottom on any device.

Verified on WebKit: left 28 = right 28, top 119 ~ bottom-to-pill 118. lint 0, check 0, unit 817/817, e2e 10/10.

The opening frame reserved a fixed pill band, which over-reserved and pushed the
world UP - the margins were not equal. Measure the floating pill's real top edge
instead and frame into the space above it, so the world sits dead-centre of the
visible area: equal margins left/right and top/bottom on any device (the
safe-area no longer throws the centring off). Recenter uses the same measure.
@PouyanJay
PouyanJay merged commit 5c4b0e7 into main Jul 26, 2026
@PouyanJay
PouyanJay deleted the mobile-center-world-equidistant branch July 26, 2026 23:45
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.

1 participant