Only show count when we have terminals
Co-Authored-By: Mikayla Maki <mikayla.c.maki@gmail.com>
This commit is contained in:
parent
15406ff2d9
commit
bd1515cdd2
1 changed files with 3 additions and 3 deletions
|
@ -79,13 +79,13 @@ impl View for TerminalButton {
|
||||||
.aligned()
|
.aligned()
|
||||||
.named("terminals-icon"),
|
.named("terminals-icon"),
|
||||||
)
|
)
|
||||||
.with_child(
|
.with_children(has_terminals.then(|| {
|
||||||
Label::new(terminal_count.to_string(), style.label.text.clone())
|
Label::new(terminal_count.to_string(), style.label.text.clone())
|
||||||
.contained()
|
.contained()
|
||||||
.with_style(style.label.container)
|
.with_style(style.label.container)
|
||||||
.aligned()
|
.aligned()
|
||||||
.boxed(),
|
.boxed()
|
||||||
)
|
}))
|
||||||
.constrained()
|
.constrained()
|
||||||
.with_height(style.icon_size)
|
.with_height(style.icon_size)
|
||||||
.contained()
|
.contained()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue