mirror of
https://github.com/siteboon/claudecodeui.git
synced 2026-06-27 23:05:30 +08:00
fix(shell): resize terminal when mobile keyboard opens
On Chrome/Android the on-screen keyboard overlays content by default (interactive-widget=resizes-visual), so the layout viewport kept its full height when the keyboard appeared. The terminal stayed at its pre-keyboard size, leaving dead space above the keyboard and a stale scroll geometry. Set interactive-widget=resizes-content so Android shrinks the layout viewport on keyboard open. The fixed inve the keyboard and the existing ResizeObserver re-fits xterm to the new height. iOS is unaffected (interactive-widget is ignored there; the VisualViewport --keyboard-height path still applies).
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
||||
<link rel="icon" type="image/png" href="/favicon.png" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, viewport-fit=cover" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, viewport-fit=cover, interactive-widget=resizes-content" />
|
||||
<title>CloudCLI UI</title>
|
||||
|
||||
<!-- PWA Manifest -->
|
||||
|
||||
Reference in New Issue
Block a user