Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Only show count when we have terminals
Petros Amoiridisbd1515cdd22b
diff --git a/crates/terminal_view/src/terminal_button.rs b/crates/terminal_view/src/terminal_button.rsindex 83bce4d9f63..87f0a2deba9 100644--- a/crates/terminal_view/src/terminal_button.rs+++ b/crates/terminal_view/src/terminal_button.rs@@ -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()