on main help sign in
chore: lint
c1ba488Kujtim Hoxha
internal/tui/components/anim/anim.go+2−2
@@ -196,13 +196,13 @@ func New(opts Settings) (a Anim) {
196// SetLabel updates the label text and re-renders it.
196// SetLabel updates the label text and re-renders it.
197func (a *Anim) SetLabel(newLabel string) {
197func (a *Anim) SetLabel(newLabel string) {
198 a.labelWidth = lipgloss.Width(newLabel)
198 a.labelWidth = lipgloss.Width(newLabel)
199−
199+
200 // Update total width
200 // Update total width
201 a.width = a.cyclingCharWidth
201 a.width = a.cyclingCharWidth
202 if newLabel != "" {
202 if newLabel != "" {
203 a.width += labelGapWidth + a.labelWidth
203 a.width += labelGapWidth + a.labelWidth
204 }
204 }
205−
205+
206 // Re-render the label
206 // Re-render the label
207 a.renderLabel(newLabel)
207 a.renderLabel(newLabel)
208}
208}
internal/tui/components/chat/messages/messages.go−1
@@ -266,7 +266,6 @@ func (m *messageCmp) renderThinkingContent() string {
266 } else {
266 } else {
267 footer = m.anim.View()
267 footer = m.anim.View()
268 }
268 }
269−
270 }
269 }
271 return lineStyle.Width(m.textWidth()).Padding(0, 1).Render(m.thinkingViewport.View()) + "\n\n" + footer
270 return lineStyle.Width(m.textWidth()).Padding(0, 1).Render(m.thinkingViewport.View()) + "\n\n" + footer
272}
271}