Skip to content

One bottom space under the composer on iOS - #14

Merged
devswha merged 2 commits into
devswha:mainfrom
Yoonwoo-Ha:fix/ios-composer-bottom-gap
Sep 24, 2026
Merged

devswha merged 2 commits into
devswha:mainfrom
Yoonwoo-Ha:fix/ios-composer-bottom-gap

Conversation

@Yoonwoo-Ha

Copy link
Copy Markdown
Contributor

Summary

On an iPhone, the chat showed an empty band under the composer. Two bottom spaces were stacking: the composer's own 16px, and the host's 34px home-indicator inset below it in the panel colour, for about 50px in total. The band stayed even with the soft keyboard up, when the home indicator is covered anyway.

  • The composer now takes the home-indicator inset itself. Its bottom padding is the larger of the two spaces rather than their sum, so the band is gone.
  • While the soft keyboard is up, the composer keeps just 8px above it. The page detects the keyboard from a text field being focused on a touch device, not from viewport sizes: on iOS Safari 26 the layout viewport shrinks together with the visual one, so a size comparison never fired. xterm's hidden field doesn't count, because the app focuses it on its own and that never raises the keyboard.
  • Desktop and Android keep their 16px.
before after
iPhone, keyboard down 50px (with band) 34px
iPhone, keyboard up 50px 8px
no inset 16px 16px

Testing

  • bun run typecheck passes and bun test passes 257/257.
  • In Chrome's iPhone 13 emulation with the safe-area inset emulated (Emulation.setSafeAreaInsetsOverride, bottom 34), I measured 50 → 34px with the keyboard down. Tapping the composer gives 8px, blurring it goes back to 34px, and xterm's field focused on page load leaves it at 34px.
  • On a real iPhone, first in Safari: with the keyboard up, the composer sat 16px above Safari's own address pill, which exposed the viewport-size check that never fires. That's the reason for the focus-based check. Then as a home-screen app: with the keyboard up, the composer sits just above iOS's input accessory bar.

🤖 Generated with Claude Code

Yoonwoo-Ha and others added 2 commits September 24, 2026 18:01
On an iPhone the chat showed an empty band under the composer: the host
kept the home-indicator inset (34px, in the panel colour) under the
composer's own 16px, 50px in all, and still did with the keyboard up, where
the indicator is covered. The composer now takes the inset itself, as the
larger of the two spaces, so the band is gone; with the soft keyboard up
(viewport.ts sees the visual viewport fall short of the layout one at scale
1) it keeps 8px above the keyboard. Desktop and Android keep their 16px.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…sizes

On a real iPhone (Safari 26) the composer kept 16px above the keyboard: the
keyboard never registered, because Safari resizes the layout viewport with
the visual one, so their difference stayed small. A touch device with a text
field focused has its keyboard up; xterm's hidden field, which the app
focuses on its own and which raises no keyboard that way, does not count.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@devswha
devswha merged commit 788b2f4 into devswha:main Sep 24, 2026
devswha added a commit that referenced this pull request Nov 23, 2026
…that stay, codes kept

From the adversarial review of #4492:
- #1 #2 #7 #10 One open attempt for the whole connect screen, tracked from the tap
  (before the Tailscale question, whose wait is bounded and takes only an
  explicit off as off): a newer tap, Cancel or leaving drops an earlier one's late
  answer, no second open runs while one does, both panes show the one status,
  open is called only where the app has it, Cancel shows only where it can stop
  it, and the plain wait and the removed screen show a scanned PC's open too.
- #3 #4 My PCs and Add a PC stay mounted under one parent across 1024 px, so the
  tab, what is typed, the focus, the search and an open survive a resize; a
  pairing dialog stays the top of the history when the window narrows under it.
- #5 Each desktop pane scrolls on its own; checked at 1024x400 with the wheel.
- #6 A code is looked up in its own field, kept through a failure to correct.
- #8 Tailscale's IPv6 range counts as a Tailscale address.
- #9 Android's no-answer is explained; an unknown reason never shows the app's words.
- #11 #12 A PC the app keeps open while choosing shows My PCs with its Back, and
  only its own scope on a self-hosted relay's origin is marked.
- #13 One alert for a failed sign-in on a wide screen. #14 The Cancel test presses it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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