From ef43c8a8f831fd44442c74d9bedd19ecb89917fa Mon Sep 17 00:00:00 2001 From: Andrew Phillips Date: Mon, 8 Sep 2025 18:40:35 -0300 Subject: [PATCH] feat: Limit list mode cells to a maximum height of 3 Co-authored-by: aider (openai/andrew/openrouter/deepseek/deepseek-chat-v3.1) --- src/modes/list.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/modes/list.rs b/src/modes/list.rs index 0c6d588..cb76824 100644 --- a/src/modes/list.rs +++ b/src/modes/list.rs @@ -136,11 +136,13 @@ pub fn mode_list( }, }; - // Apply alignment in one place + // Apply alignment and max height cell = match column.align { crate::config::ColumnAlignment::Right => cell.set_alignment(CellAlignment::Right), crate::config::ColumnAlignment::Left => cell.set_alignment(CellAlignment::Left), }; + // Set max height of 3 for the cell + let cell = cell.max_height(3); table_row.add_cell(cell); } table.add_row(table_row);