Skip to content

Commit d8bad84

Browse files
committed
fix(init): improve support for smaller terminal sizes #21
close #21
1 parent 600e76b commit d8bad84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/project/initProjectWizard.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export async function initProjectWizard(rootDir: string, opts: { diagramFile?: s
5151
const boardType = await select({
5252
message: 'Select the board to simulate:',
5353
options: filteredBoards.map((board) => ({ value: board.board, label: board.title })),
54-
maxItems: 12,
54+
maxItems: process.stdout.rows - 4,
5555
});
5656
if (isCancel(boardType)) {
5757
cancel('Operation cancelled.');

0 commit comments

Comments
 (0)