@@ -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)
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
206 // Re-render the label
206 // Re-render the label
207 a.renderLabel(newLabel)
207 a.renderLabel(newLabel)