You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(mobile): place editing toolbar above the keyboard via interactive-widget=resizes-content
The mobile keyboard toolbar's placement leaned on a sentinel + monotonic
maxVvHeight heuristic that misfired on layout-anchored browsers (Edge/Samsung):
the URL-bar-polluted baseline floated the bar too high, and it drifted as the
URL bar collapsed/expanded on scroll.
Set `interactive-widget=resizes-content` so Chromium (Chrome/Edge/Samsung) and
Firefox shrink the LAYOUT viewport when the on-screen keyboard opens — a
`position:fixed; bottom:0` toolbar then rides above the keyboard with inset 0.
Verified on a real Android device via CDP + on-screen checks (Chrome, Edge
Canary, Firefox); iOS Safari is unaffected (it ignores the key and pins fixed
elements to the visual viewport, which already lands the toolbar correctly).
useKeyboardInset stays only as a fallback for a browser that neither honors the
meta key nor visual-viewport-pins fixed elements; its now-stale comments (which
claimed Edge needs a nonzero inset) are corrected to match.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
<!-- interactive-widget=resizes-content shrinks the LAYOUT viewport when the on-screen keyboard opens, so the mobile editing toolbar (position:fixed; bottom:0) rides above the keyboard on Chromium (Chrome/Edge/Samsung) and Firefox. Safari ignores it and pins fixed elements to the visual viewport, which already lands the toolbar correctly. Load-bearing for src/plugins/mobile-keyboard-toolbar. -->
0 commit comments