fix: padding in titlebar when nothing is displayed (#139)

* Don't render anything, when nothing is shown

* fix linter issue
This commit is contained in:
Tim Adler 2022-05-24 14:05:39 +02:00 committed by GitHub
parent 2a8d463bd1
commit e1871db6d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1036,8 +1036,11 @@ func (m Model) titleView() string {
} }
} }
if len(view) > 0 {
return titleBarStyle.Render(view) return titleBarStyle.Render(view)
} }
return view
}
func (m Model) statusView() string { func (m Model) statusView() string {
var status string var status string