feat(settings): Add availableTerminalHeight prop and optimize settings dialog height management (#7697)

Co-authored-by: Jacob Richman <jacob314@gmail.com>
Co-authored-by: Arya Gummadi <aryagummadi@google.com>
This commit is contained in:
Ali Al Jufairi
2025-09-18 02:51:46 +09:00
committed by GitHub
parent 79e72a94fe
commit efb57e1cef
5 changed files with 820 additions and 26 deletions
+4 -2
View File
@@ -643,8 +643,10 @@ Logging in with Google... Please restart Gemini CLI to continue.
}, [buffer, terminalWidth, terminalHeight]);
// Compute available terminal height based on controls measurement
const availableTerminalHeight =
terminalHeight - controlsHeight - staticExtraHeight;
const availableTerminalHeight = Math.max(
0,
terminalHeight - controlsHeight - staticExtraHeight - 2,
);
config.setShellExecutionConfig({
terminalWidth: Math.floor(terminalWidth * SHELL_WIDTH_FRACTION),