mirror of
https://github.com/Maks1mS/bubbles.git
synced 2025-10-09 14:04:45 +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:
@@ -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 {
|
func (m Model) statusView() string {
|
||||||
|
Reference in New Issue
Block a user