mirror of
https://github.com/Maks1mS/bubbles.git
synced 2025-01-11 14:38:10 +03: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:
parent
2a8d463bd1
commit
e1871db6d3
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user