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:
@@ -43,6 +43,7 @@ export async function selectConfig(options: ConfigSelectorOptions): Promise<void
|
||||
process.exit(0);
|
||||
},
|
||||
() => ui.requestRender(),
|
||||
ui.terminal.rows,
|
||||
);
|
||||
|
||||
ui.addChild(selector);
|
||||
|
||||
Reference in New Issue
Block a user