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);