Skip to content

Even out the composer bars' spacing and lighten their glass - #194

Merged
simonhamp merged 3 commits into
feat/post-as-avatarsfrom
fix/reply-bar-spacing-and-fade
Nov 23, 2026
Merged

simonhamp merged 3 commits into
feat/post-as-avatarsfrom
fix/reply-bar-spacing-and-fade

Conversation

@simonhamp

@simonhamp simonhamp commented Nov 21, 2026 •

Copy link
Copy Markdown
Member

Needs NativePHP/mobile-air#735 for the glass change. Without it, glass/80 isn't a class mobile-air knows, so the bars would lose their glass on iOS. Bump mobile-air before merging this. Based on #192 (feat/post-as-avatars), because the reply bar's tools and Post as only exist on that stack (#177, #180, #182, #192), not on main yet.

Two fixes to the composer bars, from build 38 on an iPhone. Both the reply bar on a commit and the Messages composer get them.

Spacing: the field sat 20pt under the fade (8pt row padding, 4pt field row, 8pt inside the field) and only 8pt above the row of tools. The row around the box drops its 8pt top padding and the field row gains 8pt underneath, so it's now 12pt above the field and 16pt between the field and the tools. Messages had exactly the same gaps, so the change lives in composer-box and both bars share it. Each bar keeps its total height, so ComposerBoxBarHeight, the reply page's clearance and the Messages bar height in Conversation don't change.

Fade: on iOS the glass behind the bar faded in to full strength and read as a heavy grey slab over a dark screen. Display::composerBarGlass() now returns glass/80 (Display::ComposerGlassOpacity), mobile-air's new opacity suffix on the glass class, so a little more of the screen shows through on both bars. Android draws no glass and looks the same.

To watch for: 80 is a guess at "a little more transparent". It's one constant if it needs nudging after a build.

Tests: new cases in CommitDetailTest and RemotesComposerTest for the paddings on both platforms and for glass_opacity on each bar's bottom bar. The iOS glass checks skip until the app's mobile-air reads glass/N (Tests\Support\GlassOpacity). The full suite passes (1950 tests) with the mobile-air PR's PHP applied to vendor.

🤖 Generated with Claude Code

The reply field sat 20pt under the fade and only 8pt above the row of
tools. The reply row drops its 8pt top padding and the field row gains 8pt
underneath, so the field is 12pt under the fade and 16pt above the tools.
The bar is the same height as before.

On iOS the bar now asks mobile-air for its glass at 0.8 opacity
(glass-opacity on native:bottom-bar, NativePHP/mobile-air#735), so a
little more of the page shows through. Android draws no glass and is
unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
simonhamp and others added 2 commits November 21, 2026 01:31
The lighter glass is now mobile-air's glass/N suffix rather than a
separate attribute, and it's on Display::composerBarGlass(), so the
Messages composer gets it too. Messages had the same uneven gaps as the
reply bar, so the spacing moves into composer-box for both: no top
padding on the row around the box, and 8pt between the field and the
row of tools. Both bars keep their height.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
It sat at the end of tests/Pest.php, where the build branch's partial
frames helpers also land, so the two clashed on merge. It's a small class
in tests/Support now.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@simonhamp simonhamp changed the title Even out the reply bar's spacing and lighten its glass Even out the composer bars' spacing and lighten their glass Nov 21, 2026
@simonhamp
simonhamp marked this pull request as ready for review November 23, 2026 17:53
@simonhamp
simonhamp merged commit 0109aab into feat/post-as-avatars Nov 23, 2026
3 of 4 checks passed
@simonhamp
simonhamp deleted the fix/reply-bar-spacing-and-fade branch November 23, 2026 17:54
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