From 428ee2b8beb8f23f792930381fd259d2661ed81e Mon Sep 17 00:00:00 2001 From: Ed Zynda Date: Fri, 27 Mar 2026 21:32:50 +0300 Subject: [PATCH] refactor(ui): remove indentation from thinking block footer Remove PaddingLeft(2) from 'Thought for...' duration text so it aligns without extra indentation. --- internal/ui/stream.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/ui/stream.go b/internal/ui/stream.go index 928cd970..5730a53f 100644 --- a/internal/ui/stream.go +++ b/internal/ui/stream.go @@ -537,7 +537,7 @@ func (s *StreamComponent) renderReasoningBlock(reasoning string) string { content := strings.Join(lines, "\n") parts = append(parts, s.ty.Blockquote(content)) - // Duration footer with indentation. + // Duration footer without indentation. var duration time.Duration if s.reasoningDuration > 0 { duration = s.reasoningDuration @@ -551,7 +551,7 @@ func (s *StreamComponent) renderReasoningBlock(reasoning string) string { } else { durationStr = fmt.Sprintf("%.1fs", duration.Seconds()) } - footer := lipgloss.NewStyle().PaddingLeft(2).Render(s.ty.Small(fmt.Sprintf("Thought for %s", durationStr))) + footer := s.ty.Small(fmt.Sprintf("Thought for %s", durationStr)) parts = append(parts, footer) }