diff --git a/list/list.go b/list/list.go index 6808142..fd5742a 100644 --- a/list/list.go +++ b/list/list.go @@ -1162,7 +1162,7 @@ func (m Model) statusView() string { } } else if len(m.items) == 0 { // Not filtering: no items. - status = m.Styles.StatusEmpty.Render("No " + m.itemNamePlural) + status = m.Styles.StatusEmpty.Render() } else { // Normal filtered := m.FilterState() == FilterApplied @@ -1217,7 +1217,7 @@ func (m Model) populatedView() string { if m.filterState == Filtering { return "" } - return m.Styles.NoItems.Render("No " + m.itemNamePlural + ".") + return m.Styles.NoItems.Render() } if len(items) > 0 { diff --git a/list/style.go b/list/style.go index e663c07..1dd466e 100644 --- a/list/style.go +++ b/list/style.go @@ -67,7 +67,8 @@ func DefaultStyles() (s Styles) { Foreground(lipgloss.AdaptiveColor{Light: "#A49FA5", Dark: "#777777"}). Padding(0, 0, 1, 2) //nolint:mnd - s.StatusEmpty = lipgloss.NewStyle().Foreground(subduedColor) + s.StatusEmpty = lipgloss.NewStyle().Foreground(subduedColor). + SetString("No items.") s.StatusBarActiveFilter = lipgloss.NewStyle(). Foreground(lipgloss.AdaptiveColor{Light: "#1a1a1a", Dark: "#dddddd"})