Change summary
internal/tui/components/anim/anim.go | 4 ++--
internal/tui/components/chat/messages/messages.go | 1 -
2 files changed, 2 insertions(+), 3 deletions(-)
Detailed changes
@@ -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)
}
@@ -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
}