chore(list): fix v2 errors

This commit is contained in:
Christian Rocha
2024-10-23 22:10:46 -04:00
parent 89f2eef648
commit c0611f6c76
4 changed files with 98 additions and 58 deletions
+2 -2
View File
@@ -205,7 +205,7 @@ func New(items []Item, delegate ItemDelegate, width, height int) Model {
filterInput := textinput.New()
filterInput.Prompt = "Filter: "
filterInput.PromptStyle = styles.FilterPrompt
filterInput.Styles.Focused.Prompt = styles.FilterPrompt
filterInput.Cursor.Style = styles.FilterCursor
filterInput.CharLimit = 64
filterInput.Focus()
@@ -689,7 +689,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()
}