From 55516dcb770a14a0a67b4e61f2b34d3fa4dc256e Mon Sep 17 00:00:00 2001 From: Triston Date: Sun, 12 May 2024 16:43:36 -0500 Subject: [PATCH] remove container so app is fullscreen --- src/ui.rs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/ui.rs b/src/ui.rs index b2e083e..fe6c8f6 100644 --- a/src/ui.rs +++ b/src/ui.rs @@ -12,14 +12,6 @@ pub struct Ui {} impl Ui { pub fn build(&self, frame: &mut Frame, app: &mut App) { - let container = Layout::default() - .direction(Direction::Horizontal) - .constraints(vec![ - Constraint::Min(0), - Constraint::Max(100), - Constraint::Min(0), - ]) - .split(frame.size()); // layout containing a top middle and bottom panel let main_layout = Layout::default() .direction(Direction::Vertical) @@ -29,7 +21,7 @@ impl Ui { Constraint::Min(2), // dual panes + add new Constraint::Length(2), // instructions ]) - .split(container[1]); + .split(frame.size()); let todo_panes = Layout::default() .direction(Direction::Horizontal)