mirror of
https://github.com/zoriya/bubbles.git
synced 2026-08-05 20:56:17 +00:00
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:
+4
-1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user