From de380981de1faeff9969f4250059bf09b137f783 Mon Sep 17 00:00:00 2001 From: "Rai (Michael Pokorny)" Date: Tue, 24 Jun 2025 23:45:58 -0700 Subject: [PATCH] wip --- codex-rs/tui/src/status_indicator_widget.rs | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/codex-rs/tui/src/status_indicator_widget.rs b/codex-rs/tui/src/status_indicator_widget.rs index f9b71a23cb..e608b3829b 100644 --- a/codex-rs/tui/src/status_indicator_widget.rs +++ b/codex-rs/tui/src/status_indicator_widget.rs @@ -100,8 +100,9 @@ impl Drop for StatusIndicatorWidget { impl WidgetRef for StatusIndicatorWidget { fn render_ref(&self, area: Rect, buf: &mut Buffer) { let widget_style = Style::default(); + // Flush status text to the top of the input border, without extra padding let block = Block::default() - .padding(Padding::new(1, 0, 0, 0)) + .padding(Padding::new(0, 0, 0, 0)) .borders(Borders::ALL) .border_type(BorderType::Rounded) .border_style(widget_style.dim()); @@ -120,16 +121,12 @@ impl WidgetRef for StatusIndicatorWidget { header_spans.push(Span::styled( "Working ", - Style::default() - .fg(Color::White) - .add_modifier(Modifier::BOLD), + Style::default().add_modifier(Modifier::BOLD), )); header_spans.push(Span::styled( "[", - Style::default() - .fg(Color::White) - .add_modifier(Modifier::BOLD), + Style::default().add_modifier(Modifier::BOLD), )); for i in 0..DOT_COUNT { @@ -145,9 +142,7 @@ impl WidgetRef for StatusIndicatorWidget { header_spans.push(Span::styled( "] ", - Style::default() - .fg(Color::White) - .add_modifier(Modifier::BOLD), + Style::default().add_modifier(Modifier::BOLD), )); // Ensure we do not overflow width.