Skip to content

Commit

Permalink
fix: make tablle and input 50:50 size
Browse files Browse the repository at this point in the history
  • Loading branch information
sumoduduk committed Apr 10, 2024
1 parent 0c54f6c commit bfe2c71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tui/main_layout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ pub fn ui(frame: &mut Frame, app: &mut AppTui) {

let body_layout = Layout::default()
.direction(Direction::Vertical)
.constraints([Constraint::Percentage(40), Constraint::Percentage(60)])
.constraints([Constraint::Percentage(50), Constraint::Percentage(50)])
.split(screen[0]);

let upper_body = Layout::default()
Expand All @@ -50,7 +50,7 @@ pub fn ui(frame: &mut Frame, app: &mut AppTui) {
//upper body
let input_setting_layout = Layout::default()
.direction(Direction::Vertical)
.constraints([Constraint::Length(4), Constraint::Fill(1)])
.constraints([Constraint::Fill(1), Constraint::Min(8)])
.split(upper_body[0]);

let width = input_setting_layout[0].width.max(3) - 3;
Expand Down

0 comments on commit bfe2c71

Please sign in to comment.