remove container so app is fullscreen #8

Merged
tristonarmstrong merged 1 commits from 7-feature-fullscreen-tui into main 2024-05-25 15:35:45 +00:00
Showing only changes of commit 55516dcb77 - Show all commits

View File

@ -12,14 +12,6 @@ pub struct Ui {}
impl Ui { impl Ui {
pub fn build(&self, frame: &mut Frame, app: &mut App) { 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 // layout containing a top middle and bottom panel
let main_layout = Layout::default() let main_layout = Layout::default()
.direction(Direction::Vertical) .direction(Direction::Vertical)
@ -29,7 +21,7 @@ impl Ui {
Constraint::Min(2), // dual panes + add new Constraint::Min(2), // dual panes + add new
Constraint::Length(2), // instructions Constraint::Length(2), // instructions
]) ])
.split(container[1]); .split(frame.size());
let todo_panes = Layout::default() let todo_panes = Layout::default()
.direction(Direction::Horizontal) .direction(Direction::Horizontal)