Skip to content

Commit

Permalink
fix: padding in titlebar when nothing is displayed (#139)
Browse files Browse the repository at this point in the history
* Don't render anything, when nothing is shown

* fix linter issue
  • Loading branch information
toadle committed May 24, 2022
1 parent 2a8d463 commit e1871db
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion list/list.go
Expand Up @@ -1036,7 +1036,10 @@ func (m Model) titleView() string {
}
}

return titleBarStyle.Render(view)
if len(view) > 0 {
return titleBarStyle.Render(view)
}
return view
}

func (m Model) statusView() string {
Expand Down

0 comments on commit e1871db

Please sign in to comment.