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.

Remove unnecessary ConstrainedBoxes in collab panel

Max Brunsfeldf9dffc1734e2
diff --git a/crates/collab_ui/src/collab_panel.rs b/crates/collab_ui/src/collab_panel.rs
index 79e33c5048e..daaa4839757 100644
--- a/crates/collab_ui/src/collab_panel.rs
+++ b/crates/collab_ui/src/collab_panel.rs
@@ -2518,27 +2518,16 @@ impl View for CollabPanel {
.with_child(
Flex::column()
.with_child(
- Flex::row()
- .with_child(
- ChildView::new(&self.filter_editor, cx)
- .contained()
- .with_style(theme.user_query_editor.container)
- .flex(1.0, true),
- )
- .constrained()
- .with_width(self.size(cx)),
- )
- .with_child(
- List::new(self.list_state.clone())
- .constrained()
- .with_width(self.size(cx))
- .flex(1., true)
- .into_any(),
+ Flex::row().with_child(
+ ChildView::new(&self.filter_editor, cx)
+ .contained()
+ .with_style(theme.user_query_editor.container)
+ .flex(1.0, true),
+ ),
)
+ .with_child(List::new(self.list_state.clone()).flex(1., true).into_any())
.contained()
.with_style(theme.container)
- .constrained()
- .with_width(self.size(cx))
.into_any(),
)
.with_children(