From 635db69aa8dc7d520735fc2956b153ecbfc29e4b Mon Sep 17 00:00:00 2001 From: alemi Date: Fri, 9 Feb 2024 20:19:35 +0100 Subject: [PATCH] fix: updated usage for ratatui --- src/app.rs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/app.rs b/src/app.rs index 88779f3..5410ce6 100644 --- a/src/app.rs +++ b/src/app.rs @@ -221,16 +221,16 @@ fn make_header<'a>(cfg: &GraphConfig, module_header: &'a str, kind_o_scope: &'st Cell::from(if pause { "||" } else { "|>" }), ] ) + ], + vec![ + Constraint::Percentage(35), + Constraint::Percentage(25), + Constraint::Percentage(7), + Constraint::Percentage(13), + Constraint::Percentage(6), + Constraint::Percentage(6), + Constraint::Percentage(6) ] ) .style(Style::default().fg(cfg.labels_color)) - .widths(&[ - Constraint::Percentage(35), - Constraint::Percentage(25), - Constraint::Percentage(7), - Constraint::Percentage(13), - Constraint::Percentage(6), - Constraint::Percentage(6), - Constraint::Percentage(6) - ]) }