From e30d1bfeba55230502d4848736ab6d98dbb4780c Mon Sep 17 00:00:00 2001 From: Mark Pitblado Date: Sun, 27 Oct 2024 06:11:51 -0700 Subject: [PATCH] fix: adjust width of columns --- src/ui.rs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/ui.rs b/src/ui.rs index d6137a5..2f1c8b7 100644 --- a/src/ui.rs +++ b/src/ui.rs @@ -99,13 +99,7 @@ pub async fn run_app( let chunks = Layout::default() .direction(Direction::Vertical) .margin(0) - .constraints( - [ - Constraint::Min(0), // Body takes up the remaining space - Constraint::Length(2), // Footer is 3 rows high - ] - .as_ref(), - ) + .constraints([Constraint::Min(0), Constraint::Length(2)].as_ref()) .split(size); let body_chunk = chunks[0]; @@ -116,7 +110,7 @@ pub async fn run_app( let chunks = Layout::default() .direction(Direction::Horizontal) .constraints( - [Constraint::Percentage(50), Constraint::Percentage(50)].as_ref(), + [Constraint::Percentage(65), Constraint::Percentage(35)].as_ref(), ) .split(body_chunk);