Skip to content

Conversation

@ibetitsmike
Copy link
Contributor

On iPadOS 26 with external keyboard in PWA mode, Safari shows an input accessory bar (language switch, up/down arrows, microphone) that can cause layout shifts when focusing the chat input.

Changes:

  • Add viewport-fit=cover to viewport meta for safe area inset support
  • Use 100dvh (dynamic viewport height) to account for browser chrome and keyboard bars, with 100vh fallback for older browsers
  • Add CSS env() safe-area-inset handling for notched devices
  • Add enterKeyHint="send" to textarea for better mobile keyboard UX

The dvh unit automatically adjusts when the keyboard accessory bar appears/disappears, preventing the chat input from being pushed around.


Generated with mux

On iPadOS 26 with external keyboard in PWA mode, Safari shows an input
accessory bar (language switch, up/down arrows, microphone) that can
cause layout shifts when focusing the chat input.

Changes:
- Add viewport-fit=cover to viewport meta for safe area inset support
- Use 100dvh (dynamic viewport height) to account for browser chrome
  and keyboard bars, with 100vh fallback for older browsers
- Add CSS env() safe-area-inset handling for notched devices
- Add enterKeyHint="send" to textarea for better mobile keyboard UX
- Add comprehensive comments explaining the iOS/iPadOS keyboard behavior

The dvh unit automatically adjusts when the keyboard accessory bar
appears/disappears, preventing the chat input from being pushed around.

_Generated with `mux`_
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Addresses review feedback - viewport-fit=cover requires handling all
four safe-area insets (top, bottom, left, right) to prevent content
from being obscured by notches, home indicators, or screen edges.
@ibetitsmike ibetitsmike added this pull request to the merge queue Dec 3, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 3, 2025
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