Remove unnecessary ConstrainedBoxes in collab panel
Co-authored-by: Mikayla <mikayla@zed.dev>
This commit is contained in:
parent
123bc85a8e
commit
f9dffc1734
1 changed files with 7 additions and 18 deletions
|
@ -2518,27 +2518,16 @@ impl View for CollabPanel {
|
||||||
.with_child(
|
.with_child(
|
||||||
Flex::column()
|
Flex::column()
|
||||||
.with_child(
|
.with_child(
|
||||||
Flex::row()
|
Flex::row().with_child(
|
||||||
.with_child(
|
ChildView::new(&self.filter_editor, cx)
|
||||||
ChildView::new(&self.filter_editor, cx)
|
.contained()
|
||||||
.contained()
|
.with_style(theme.user_query_editor.container)
|
||||||
.with_style(theme.user_query_editor.container)
|
.flex(1.0, true),
|
||||||
.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(),
|
|
||||||
)
|
)
|
||||||
|
.with_child(List::new(self.list_state.clone()).flex(1., true).into_any())
|
||||||
.contained()
|
.contained()
|
||||||
.with_style(theme.container)
|
.with_style(theme.container)
|
||||||
.constrained()
|
|
||||||
.with_width(self.size(cx))
|
|
||||||
.into_any(),
|
.into_any(),
|
||||||
)
|
)
|
||||||
.with_children(
|
.with_children(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue