config selector: scale maxVisible to terminal height

ResourceList hardcoded maxVisible=15, leaving most of the screen
empty on tall terminals. Pass terminalHeight through from
ProcessTerminal.rows and compute maxVisible dynamically, matching
the pattern tree-selector already uses.

Closes #4241
This commit is contained in:
Sam Jones
2026-05-06 14:45:13 -04:00
parent 88619669e2
commit fcd96df6f2
2 changed files with 14 additions and 3 deletions

View File

@@ -43,6 +43,7 @@ export async function selectConfig(options: ConfigSelectorOptions): Promise<void
process.exit(0);
},
() => ui.requestRender(),
ui.terminal.rows,
);
ui.addChild(selector);