Repository navigation
mobile: keep the composer above the on-screen keyboard (#164) - #165
Merged
Merged
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
100dvhfollows the browser toolbars, not the on-screen keyboard. With the keyboard open the layout keeps its full height, so the bottom-anchored composer sits under it and the phone user cannot see what they are typing (#164).public/index.htmlviewport meta now carriesinteractive-widget=resizes-content, so Chrome/Android shrinks the layout viewport when the keyboard opens.visualViewport, sosyncKeyboardViewport()pinsbody.style.heightto the visible band while a textarea / input / contenteditable has focus, and drops the inline height when the keyboard closes. A pinch-zoom (scale !== 1) and a toolbar-sized shrink with nothing focused leave the page alone.Evidence
Real layout, Chromium at 390x844 with mobile emulation; the keyboard is simulated by shrinking
visualViewport.heightto 430px (the only signal iOS gives):main(dbbbfa6)test/mobile-keyboard-viewport.test.js(new, wired into thenpm testchain) runs the real block fromindex.htmlin avm: the pin/clear decision table, the meta, and the listener registration — 9 checks.Local chain on this host (Node 24.22.1): every suite up to
kanban-run-badgespasses, and all 79 suites fromi18n-completenessthroughexternal-apipass, the new one included. The chain aborts attest/task-backlog.test.jswith "the refusing server on port 4553 did not start" — that happens identically onorigin/mainon this host (HOST=localhost binds ::1 here while the probe reaches 127.0.0.1), so it is pre-existing and environmental, not this change.WebKit could not be measured here (the bundled build is missing system libraries), so the iOS path is covered by the vm suite rather than a device run.
Closes #164