diff --git a/filter/filter.go b/filter/filter.go index fb6f0e0..579c523 100644 --- a/filter/filter.go +++ b/filter/filter.go @@ -134,7 +134,10 @@ func (m model) View() string { } view := m.textinput.View() + "\n" + m.viewport.View() - return lipgloss.JoinVertical(lipgloss.Left, header, view) + if m.header != "" { + return lipgloss.JoinVertical(lipgloss.Left, header, view) + } + return view } func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {