Skip to content

fix(web): seamless chat header and tighter composer edge on iPhone - #25

Merged
lbgos merged 1 commit into
mainfrom
t3/soft-blur-3
Nov 26, 2026
Merged

lbgos merged 1 commit into
mainfrom
t3/soft-blur-3

Conversation

@lbgos

@lbgos lbgos commented Nov 26, 2026

Copy link
Copy Markdown
Owner

In iPhone standalone mode (apple-mobile-web-app-status-bar-style="black"), the status bar sits outside the webview in a solid fill while the chat header starts directly below it, so the translucent header left a sharp seam and masked backdrop-filter layers sliced scrolled lines and smeared the scroll indicator. At the bottom of a chat, BOT_SOFT_ZONE_PX and the list footer spacer left ~66px of empty space above the composer pill, and in light mode meta[name="theme-color"] lagged behind the bots surface colour.

  • Opaque chat header + eased skirt: Made [data-chat-header]::after opaque in --bots-page with isolation: isolate and no backdrop-filter, kept [data-top-edge] for iOS 26 status-bar colour matching, and added a 1.5rem eased colour-gradient skirt below the header so scrolled messages fade cleanly into the bar.
  • Theme colour sync in bots mode: Updated syncBrowserChromeTheme() to read the bots inset surface when data-bots-app is active and invoked it when data-bots-app mounts or unmounts in AppSidebarLayout, matching the status bar and header across dark, light, and named themes.
  • Tighter, cleaner composer edge: Replaced the masked composer blur layers with one plain unmasked frosted rectangle (blur(7px) saturate(140%)) tucked flush with the composer pill plus a 1rem colour-gradient skirt, removed BOT_SOFT_ZONE_PX, and collapsed the extra footer spacer in bot chats so the last message rests ~22px above the pill while scrolled content passes softly behind it. All layers remain opaque during view transitions.

Before on the left, after on the right (390×844, synthetic transcripts).

Standalone top edge (59px status bar + mid-scroll bubble), dark:

Standalone top, dark

Standalone top edge, light:

Standalone top, light

Standalone top edge, Grove dark:

Standalone top, Grove dark

End of chat, dark:

End of chat, dark

End of chat, light:

End of chat, light

gemini-4-neon · Antigravity

…om edge

In iOS standalone mode (apple-mobile-web-app-status-bar-style=black), the status bar sits outside the webview in a solid fill while the chat header starts directly below it, so any translucent header produced a visible seam and masked backdrop-filter layers sliced text lines and smeared the scroll indicator. In light mode, meta[name=theme-color] also lagged behind the bots surface colour because syncBrowserChromeTheme did not re-run when data-bots-app mounted and preferred --app-chrome-background over --bots-page on named themes. At the bottom, BOT_SOFT_ZONE_PX plus the list footer spacer left ~66px of empty space above the composer pill.

Make the chat header opaque in --bots-page (no backdrop-filter) with isolation: isolate and an eased colour-gradient skirt below it, keep data-top-edge so iOS 26 fills the status bar in the same colour, and sync meta[name=theme-color] from the bots inset surface when data-bots-app toggles. At the bottom, replace the masked blur layers with one plain unmasked frosted rectangle tucked flush with the composer pill plus a 1rem colour-gradient skirt, and remove BOT_SOFT_ZONE_PX and the extra footer spacer in bot chats.
@lbgos
lbgos deployed to leak-gate November 26, 2026 15:57 — with GitHub Actions Active
@lbgos
lbgos merged commit 32a007a into main Nov 26, 2026
12 checks passed

This branch was successfully deployed

1 active deployment
leak-gate — 8aebaf47 Deployed Nov 26, 2026 by lbgos via Denylist #57
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