From 3b66647aa0530437167d747d06c9bbae0bc2ce93 Mon Sep 17 00:00:00 2001 From: Jinwoo-H Date: Thu, 30 Apr 2026 17:40:49 -0400 Subject: [PATCH] Subtract 2 rows from mobile viewport to fully clear accessory bar Co-authored-by: Orca --- mobile/src/terminal/TerminalWebView.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mobile/src/terminal/TerminalWebView.tsx b/mobile/src/terminal/TerminalWebView.tsx index 152c195787f..2b631b19081 100644 --- a/mobile/src/terminal/TerminalWebView.tsx +++ b/mobile/src/terminal/TerminalWebView.tsx @@ -309,11 +309,11 @@ const XTERM_HTML = ` var vpWidth = window.innerWidth; var vpHeight = window.innerHeight; var cols = Math.floor(vpWidth / cellWidth); - // Why: subtract 1 row so the bottom terminal line is never covered + // Why: subtract 2 rows so the bottom terminal line is never covered // by the accessory bar. The WebView's innerHeight can slightly // overstate the visible area due to layout timing or safe-area - // insets, causing the last row to render behind the overlay. - var rows = Math.max(8, Math.floor(vpHeight / cellHeight) - 1); + // insets, causing the last rows to render behind the overlay. + var rows = Math.max(8, Math.floor(vpHeight / cellHeight) - 2); notify({ type: 'measure-result', cols: cols, rows: rows }); }