refactor(ui): remove indentation from thinking block footer

Remove PaddingLeft(2) from 'Thought for...' duration text
so it aligns without extra indentation.
This commit is contained in:
Ed Zynda
2026-03-27 21:32:50 +03:00
parent eb1d7fd07e
commit 428ee2b8be
+2 -2
View File
@@ -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)
}