chore(textinput): use a getter and setter for width

This commit is contained in:
Christian Rocha
2024-10-31 15:02:05 -04:00
parent 52bd03ed5b
commit 591dfd528e
2 changed files with 23 additions and 13 deletions
+1 -1
View File
@@ -691,7 +691,7 @@ func (m *Model) setSize(width, height int) {
m.width = width
m.height = height
m.Help.Width = width
m.FilterInput.Width = width - promptWidth - lipgloss.Width(m.spinnerView())
m.FilterInput.SetWidth(width - promptWidth - lipgloss.Width(m.spinnerView()))
m.updatePagination()
}