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

View File

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