Merge pull request #8 from Klectr/7-feature-fullscreen-tui

remove container so app is fullscreen
This commit is contained in:
Triston Armstrong 2024-05-25 10:35:45 -05:00 committed by GitHub
commit 29358736e1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)