summaryrefslogtreecommitdiffstats
path: root/src/display/components/table.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/display/components/table.rs')
-rw-r--r--src/display/components/table.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/display/components/table.rs b/src/display/components/table.rs
index a003662..6e602d1 100644
--- a/src/display/components/table.rs
+++ b/src/display/components/table.rs
@@ -377,10 +377,9 @@ impl Table {
.map(Constraint::Length)
.collect();
- let table = ratatui::widgets::Table::new(tui_rows_iter)
+ let table = ratatui::widgets::Table::new(tui_rows_iter, widths_constraints)
.block(Block::default().title(self.title).borders(Borders::ALL))
.header(Row::new(column_names).style(Style::default().fg(Color::Yellow)))
- .widths(&widths_constraints)
.column_spacing(spacer_width);
frame.render_widget(table, rect);
}