Upgraded to ratatui v0.25.0
This commit is contained in:
+1
-3
@@ -373,7 +373,7 @@ fn draw_table_contents<'a, T, F>(
|
||||
.style(style_default_bold())
|
||||
.bottom_margin(0);
|
||||
|
||||
let mut table = Table::new(rows).header(headers).block(block);
|
||||
let mut table = Table::new(rows, &constraints).header(headers).block(block);
|
||||
|
||||
if highlight {
|
||||
table = table
|
||||
@@ -381,8 +381,6 @@ fn draw_table_contents<'a, T, F>(
|
||||
.highlight_symbol(HIGHLIGHT_SYMBOL);
|
||||
}
|
||||
|
||||
table = table.widths(&constraints);
|
||||
|
||||
f.render_stateful_widget(table, content_area, &mut content.state);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user