diff --git a/internal/tui/components/anim/anim.go b/internal/tui/components/anim/anim.go index d47c8919171d225deeb490410cef02daaf95ab16..07d02483d0b470b6b4cadf36fbe5acd52e8857ba 100644 --- a/internal/tui/components/anim/anim.go +++ b/internal/tui/components/anim/anim.go @@ -196,13 +196,13 @@ func New(opts Settings) (a Anim) { // SetLabel updates the label text and re-renders it. func (a *Anim) SetLabel(newLabel string) { a.labelWidth = lipgloss.Width(newLabel) - + // Update total width a.width = a.cyclingCharWidth if newLabel != "" { a.width += labelGapWidth + a.labelWidth } - + // Re-render the label a.renderLabel(newLabel) } diff --git a/internal/tui/components/chat/messages/messages.go b/internal/tui/components/chat/messages/messages.go index 718a055d6ac0b568efcc14d6974fa3a4557a21af..078caf7dcd941eebab7d1a2989b25539c41989e4 100644 --- a/internal/tui/components/chat/messages/messages.go +++ b/internal/tui/components/chat/messages/messages.go @@ -266,7 +266,6 @@ func (m *messageCmp) renderThinkingContent() string { } else { footer = m.anim.View() } - } return lineStyle.Width(m.textWidth()).Padding(0, 1).Render(m.thinkingViewport.View()) + "\n\n" + footer }