on main help sign in
fix(ui): typo in ListItemStyles type name
ac03cb0Christian Rocha
internal/ui/dialog/commands_item.go+1−1
@@ -66,7 +66,7 @@ func (c *CommandItem) Shortcut() string {
66
66
67// Render implements ListItem.
67// Render implements ListItem.
68func (c *CommandItem) Render(width int) string {
68func (c *CommandItem) Render(width int) string {
69− styles := ListIemStyles{
69+ styles := ListItemStyles{
70 ItemBlurred: c.t.Dialog.NormalItem,
70 ItemBlurred: c.t.Dialog.NormalItem,
71 ItemFocused: c.t.Dialog.SelectedItem,
71 ItemFocused: c.t.Dialog.SelectedItem,
72 InfoTextBlurred: c.t.Base,
72 InfoTextBlurred: c.t.Base,
internal/ui/dialog/models_item.go+1−1
@@ -106,7 +106,7 @@ func (m *ModelItem) Render(width int) string {
106 if m.showProvider {
106 if m.showProvider {
107 providerInfo = string(m.prov.Name)
107 providerInfo = string(m.prov.Name)
108 }
108 }
109− styles := ListIemStyles{
109+ styles := ListItemStyles{
110 ItemBlurred: m.t.Dialog.NormalItem,
110 ItemBlurred: m.t.Dialog.NormalItem,
111 ItemFocused: m.t.Dialog.SelectedItem,
111 ItemFocused: m.t.Dialog.SelectedItem,
112 InfoTextBlurred: m.t.Base,
112 InfoTextBlurred: m.t.Base,
internal/ui/dialog/reasoning.go+1−1
@@ -293,7 +293,7 @@ func (r *ReasoningItem) Render(width int) string {
293 if r.isCurrent {
293 if r.isCurrent {
294 info = "current"
294 info = "current"
295 }
295 }
296− styles := ListIemStyles{
296+ styles := ListItemStyles{
297 ItemBlurred: r.t.Dialog.NormalItem,
297 ItemBlurred: r.t.Dialog.NormalItem,
298 ItemFocused: r.t.Dialog.SelectedItem,
298 ItemFocused: r.t.Dialog.SelectedItem,
299 InfoTextBlurred: r.t.Base,
299 InfoTextBlurred: r.t.Base,
internal/ui/dialog/sessions_item.go+3−3
@@ -76,7 +76,7 @@ func (s *SessionItem) Cursor() *tea.Cursor {
76// Render returns the string representation of the session item.
76// Render returns the string representation of the session item.
77func (s *SessionItem) Render(width int) string {
77func (s *SessionItem) Render(width int) string {
78 info := humanize.Time(time.Unix(s.UpdatedAt, 0))
78 info := humanize.Time(time.Unix(s.UpdatedAt, 0))
79− styles := ListIemStyles{
79+ styles := ListItemStyles{
80 ItemBlurred: s.t.Dialog.NormalItem,
80 ItemBlurred: s.t.Dialog.NormalItem,
81 ItemFocused: s.t.Dialog.SelectedItem,
81 ItemFocused: s.t.Dialog.SelectedItem,
82 InfoTextBlurred: s.t.Subtle,
82 InfoTextBlurred: s.t.Subtle,
@@ -101,14 +101,14 @@ func (s *SessionItem) Render(width int) string {
101 return renderItem(styles, s.Title, info, s.focused, width, s.cache, &s.m)
101 return renderItem(styles, s.Title, info, s.focused, width, s.cache, &s.m)
102}
102}
103
103
104−type ListIemStyles struct {
104+type ListItemStyles struct {
105 ItemBlurred lipgloss.Style
105 ItemBlurred lipgloss.Style
106 ItemFocused lipgloss.Style
106 ItemFocused lipgloss.Style
107 InfoTextBlurred lipgloss.Style
107 InfoTextBlurred lipgloss.Style
108 InfoTextFocused lipgloss.Style
108 InfoTextFocused lipgloss.Style
109}
109}
110
110
111−func renderItem(t ListIemStyles, title string, info string, focused bool, width int, cache map[int]string, m *fuzzy.Match) string {
111+func renderItem(t ListItemStyles, title string, info string, focused bool, width int, cache map[int]string, m *fuzzy.Match) string {
112 if cache == nil {
112 if cache == nil {
113 cache = make(map[int]string)
113 cache = make(map[int]string)
114 }
114 }