Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Fix toolbar flex sizing
Marshall Bowers2484a6969a96
diff --git a/crates/workspace2/src/toolbar.rs b/crates/workspace2/src/toolbar.rsindex b6d7b3e2cbf..a6c8f9d0bff 100644--- a/crates/workspace2/src/toolbar.rs+++ b/crates/workspace2/src/toolbar.rs@@ -109,8 +109,22 @@ impl Render for Toolbar {.child(h_stack().justify_between()- .child(h_stack().children(self.left_items().map(|item| item.to_any())))- .child(h_stack().children(self.right_items().map(|item| item.to_any()))),+ .when(self.left_items().count() > 0, |this| {+ this.child(+ h_stack()+ .flex_1()+ .justify_start()+ .children(self.left_items().map(|item| item.to_any())),+ )+ })+ .when(self.right_items().count() > 0, |this| {+ this.child(+ h_stack()+ .flex_1()+ .justify_end()+ .children(self.right_items().map(|item| item.to_any())),+ )+ }),).children(secondary_item)}