From 655284a59b2c840ec667d7a4e0e8fb86dde03282 Mon Sep 17 00:00:00 2001 From: gsxdsm Date: Sat, 18 Apr 2026 20:16:34 -0700 Subject: [PATCH] fix(FN-000): improve mobile terminal helper textarea focus target --- packages/dashboard/app/styles.css | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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; }