Skip to content

Commit

Permalink
fix(ui): fill header border
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-olszewski committed May 10, 2024
1 parent 4ebfcbb commit 0f86889
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions crates/turborepo-ui/src/tui/table.rs
Expand Up @@ -219,6 +219,8 @@ impl<'a> StatefulWidget for &'a TaskTable {
type State = TableState;

fn render(self, area: Rect, buf: &mut ratatui::prelude::Buffer, state: &mut Self::State) {
let width = area.width;
let bar = "─".repeat(usize::from(width));
let table = Table::new(
self.finished_rows()
.chain(self.running_rows())
Expand All @@ -232,9 +234,8 @@ impl<'a> StatefulWidget for &'a TaskTable {
.highlight_style(Style::default().fg(Color::Yellow))
.column_spacing(0)
.header(
["Task\n────", "\n─"]
.iter()
.copied()
vec![format!("Task\n{bar}"), "\n─".to_owned()]
.into_iter()
.map(Cell::from)
.collect::<Row>()
.height(2),
Expand Down

0 comments on commit 0f86889

Please sign in to comment.