summaryrefslogtreecommitdiffstats
path: root/src/display/components/table.rs
diff options
context:
space:
mode:
authordependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>2024-01-28 00:22:01 +0800
committerGitHub <noreply@github.com>2024-01-28 00:22:01 +0800
commit9e0dc2b6127512f13f962cc4d1f6fcc2eb6fa45b (patch)
treed11a505901d7a6a37ee8fd278c691bcaa2e65e55 /src/display/components/table.rs
parent65638676e6b35412d5e34cca9d8d690afcf649c6 (diff)
chore(deps): bump ratatui from 0.24.0 to 0.25.0 (#348)
* chore(deps): bump ratatui from 0.24.0 to 0.25.0 Bumps [ratatui](https://github.com/ratatui-org/ratatui) from 0.24.0 to 0.25.0. - [Release notes](https://github.com/ratatui-org/ratatui/releases) - [Changelog](https://github.com/ratatui-org/ratatui/blob/main/CHANGELOG.md) - [Commits](https://github.com/ratatui-org/ratatui/compare/v0.24.0...v0.25.0) --- updated-dependencies: - dependency-name: ratatui dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Update API changes --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: cyqsimon <28627918+cyqsimon@users.noreply.github.com>
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);
}