fix(ui): typo in ListItemStyles type name

Christian Rocha created

💘 Generated with Crush

Assisted-by: Kimi K2.5 via Crush <crush@charm.land>

Change summary

internal/ui/dialog/commands_item.go | 2 +-
internal/ui/dialog/models_item.go   | 2 +-
internal/ui/dialog/reasoning.go     | 2 +-
internal/ui/dialog/sessions_item.go | 6 +++---
4 files changed, 6 insertions(+), 6 deletions(-)

Detailed changes

internal/ui/dialog/commands_item.go 🔗

@@ -66,7 +66,7 @@ func (c *CommandItem) Shortcut() string {
 
 // Render implements ListItem.
 func (c *CommandItem) Render(width int) string {
-	styles := ListIemStyles{
+	styles := ListItemStyles{
 		ItemBlurred:     c.t.Dialog.NormalItem,
 		ItemFocused:     c.t.Dialog.SelectedItem,
 		InfoTextBlurred: c.t.Base,

internal/ui/dialog/models_item.go 🔗

@@ -106,7 +106,7 @@ func (m *ModelItem) Render(width int) string {
 	if m.showProvider {
 		providerInfo = string(m.prov.Name)
 	}
-	styles := ListIemStyles{
+	styles := ListItemStyles{
 		ItemBlurred:     m.t.Dialog.NormalItem,
 		ItemFocused:     m.t.Dialog.SelectedItem,
 		InfoTextBlurred: m.t.Base,

internal/ui/dialog/reasoning.go 🔗

@@ -293,7 +293,7 @@ func (r *ReasoningItem) Render(width int) string {
 	if r.isCurrent {
 		info = "current"
 	}
-	styles := ListIemStyles{
+	styles := ListItemStyles{
 		ItemBlurred:     r.t.Dialog.NormalItem,
 		ItemFocused:     r.t.Dialog.SelectedItem,
 		InfoTextBlurred: r.t.Base,

internal/ui/dialog/sessions_item.go 🔗

@@ -76,7 +76,7 @@ func (s *SessionItem) Cursor() *tea.Cursor {
 // Render returns the string representation of the session item.
 func (s *SessionItem) Render(width int) string {
 	info := humanize.Time(time.Unix(s.UpdatedAt, 0))
-	styles := ListIemStyles{
+	styles := ListItemStyles{
 		ItemBlurred:     s.t.Dialog.NormalItem,
 		ItemFocused:     s.t.Dialog.SelectedItem,
 		InfoTextBlurred: s.t.Subtle,
@@ -101,14 +101,14 @@ func (s *SessionItem) Render(width int) string {
 	return renderItem(styles, s.Title, info, s.focused, width, s.cache, &s.m)
 }
 
-type ListIemStyles struct {
+type ListItemStyles struct {
 	ItemBlurred     lipgloss.Style
 	ItemFocused     lipgloss.Style
 	InfoTextBlurred lipgloss.Style
 	InfoTextFocused lipgloss.Style
 }
 
-func renderItem(t ListIemStyles, title string, info string, focused bool, width int, cache map[int]string, m *fuzzy.Match) string {
+func renderItem(t ListItemStyles, title string, info string, focused bool, width int, cache map[int]string, m *fuzzy.Match) string {
 	if cache == nil {
 		cache = make(map[int]string)
 	}