Skip to content

Commit

Permalink
fix(tui): account for pane header/footer
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-olszewski committed Jul 24, 2024
1 parent 08a242d commit 41d626d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/turborepo-ui/src/tui/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ impl<W> App<W> {
let full_task_width = cols.saturating_sub(task_width_hint);
let pane_cols = full_task_width.max(ratio_pane_width);

// We use 2 rows for pane title and for the interaction info
let rows = rows.saturating_sub(2).max(1);

// Initializes with the planned tasks
// and will mutate as tasks change
// to running, finished, etc.
Expand Down

0 comments on commit 41d626d

Please sign in to comment.