Repository navigation
Fix iPad keyboard toolbar overlay handling - #455
Conversation
When an external keyboard is connected to iPad, Capacitor's keyboard event fires with a small height (~55px) for the toolbar, shrinking the entire app and leaving a visible gap at the bottom. This detects the external keyboard toolbar (height <100px) and skips the app shrink, letting the toolbar overlay naturally. Also adds a background fill behind the safe area in the input positioner and sets the html background color for full safe-area coverage. https://claude.ai/code/session_01UBHund2513D3bvW2pjqLXo
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
📝 WalkthroughWalkthroughThese changes enhance iOS keyboard interaction and visual presentation by adding a CSS background variable to the root element, conditionally rendering a background filler element in the floating input when docked, and implementing conditional keyboard detection logic to differentiate between native keyboards and external iPad toolbars. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
Improved handling of iPad's external keyboard toolbar to prevent unnecessary UI shrinking while maintaining proper keyboard support for full on-screen keyboards.
Key Changes
htmlelement to ensure consistent background rendering across the entire viewport.Implementation Details
--safe-bottom-offsetfor flexible height configurationhttps://claude.ai/code/session_01UBHund2513D3bvW2pjqLXo
Summary by CodeRabbit