Skip to content

Commit

Permalink
fix: adjust width of columns
Browse files Browse the repository at this point in the history
mark-pitblado committed Oct 27, 2024
1 parent 42f1719 commit e30d1bf
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/ui.rs
Original file line number Diff line number Diff line change
@@ -99,13 +99,7 @@ pub async fn run_app<B: Backend>(
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<B: Backend>(
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);

0 comments on commit e30d1bf

Please sign in to comment.