Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Ensure panes cover the available space
Antonio Scandurrab5c2cf371a5c
diff --git a/crates/workspace2/src/pane.rs b/crates/workspace2/src/pane.rsindex eef829afa71..1bccaaea641 100644--- a/crates/workspace2/src/pane.rs+++ b/crates/workspace2/src/pane.rs@@ -1891,13 +1891,14 @@ impl Render for Pane {fn render(&mut self, cx: &mut ViewContext<Self>) -> Self::Element {v_stack()+ .size_full().child(self.render_tab_bar(cx))- .child(div() /* toolbar */)+ .child(div() /* todo!(toolbar) */).child(if let Some(item) = self.active_item() {- item.to_any().render()+ div().flex_1().child(item.to_any())} else {// todo!()- div().child("Empty Pane").render()+ div().child("Empty Pane")})// enum MouseNavigationHandler {}diff --git a/crates/workspace2/src/pane_group.rs b/crates/workspace2/src/pane_group.rsindex 441aef21f53..a9e95b8c29a 100644--- a/crates/workspace2/src/pane_group.rs+++ b/crates/workspace2/src/pane_group.rs@@ -201,7 +201,7 @@ impl Member {// Some(pane)// };- div().child(pane.clone()).render()+ div().size_full().child(pane.clone()).render()// Stack::new()// .with_child(pane_element.contained().with_border(leader_border))diff --git a/crates/workspace2/src/status_bar.rs b/crates/workspace2/src/status_bar.rsindex ca4ebcdb130..4f7ba02c2ae 100644--- a/crates/workspace2/src/status_bar.rs+++ b/crates/workspace2/src/status_bar.rs@@ -44,6 +44,7 @@ impl Render for StatusBar {.items_center().justify_between().w_full()+ .h_8().bg(cx.theme().colors().status_bar).child(self.render_left_tools(cx)).child(self.render_right_tools(cx))