Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Merge branch 'gpui2' into gpui2ui-debug-panel

Marshall Bowers7ed891e0c6fc
diff --cc crates/ui2/src/components/workspace.rs
index a4e4f079d50,96cb4090463..baef402de8c
--- a/crates/ui2/src/components/workspace.rs
+++ b/crates/ui2/src/components/workspace.rs
@@@ -242,10 -183,20 +242,10 @@@ impl Workspace
v_stack()
.flex_1()
.h_full()
- .child(
- div()
- .flex()
- .flex_1()
- // CSS Hack: Flex 1 has to have a set height to properly fill the space
- // Or it will give you a height of 0
- // Marshall: We may not need this anymore with `gpui3`. It seems to render
- // fine without it.
- .h_px()
- .child(root_group),
- )
+ .child(div().flex().flex_1().child(root_group))
.children(
Some(
- Panel::new(self.bottom_panel_scroll_state.clone())
+ Panel::new(cx)
.child(Terminal::new())
.allowed_sides(PanelAllowedSides::BottomOnly)
.side(PanelSide::Bottom),