diff --git a/packages/dashboard/app/styles.css b/packages/dashboard/app/styles.css index e09c7d934..58cb18f06 100644 --- a/packages/dashboard/app/styles.css +++ b/packages/dashboard/app/styles.css @@ -9908,17 +9908,18 @@ body { } /* - * Keep xterm's helper textarea tiny and hidden off-screen. + * Keep xterm's helper textarea tiny and inside terminal bounds. * - * The textarea is still focusable via pointer/touch handlers in TerminalModal, - * which is required for mobile keyboard activation. + * Mobile browsers are more likely to honor focus for keyboard activation when + * the focused element is not placed far off-screen. */ .terminal-xterm .xterm .xterm-helper-textarea { left: 0 !important; - top: -9999px !important; + top: 0 !important; width: 1px !important; height: 1px !important; - opacity: 0 !important; + opacity: 0.01 !important; + pointer-events: none !important; z-index: 1 !important; }