Only show count when we have terminals

Co-Authored-By: Mikayla Maki <mikayla.c.maki@gmail.com>
This commit is contained in:
Petros AmoiridisandMikayla Maki committed 2023-03-22 18:23:41 +02:00
1 parent 49c4f27d41
commit 77c2dbe10f
1 file changed
+3 -3
+3 -3
View File
@@ -79,13 +79,13 @@ impl View for TerminalButton {
.aligned()
.named("terminals-icon"),
)
.with_child(
.with_children(has_terminals.then(|| {
Label::new(terminal_count.to_string(), style.label.text.clone())
.contained()
.with_style(style.label.container)
.aligned()
.boxed(),
)
.boxed()
}))
.constrained()
.with_height(style.icon_size)
.contained()