Center the query editor (for real now)

Co-authored-by: Kyle <kyle@zed.dev>
This commit is contained in:
Piotr Osiewicz 2023-08-04 17:49:54 +02:00
parent 82eb6d8bc3
commit 8fa082c28b

View file

@ -1973,10 +1973,12 @@ impl View for ProjectSearchBar {
.aligned() .aligned()
.left(), .left(),
) )
.contained()
.flex(1., true), .flex(1., true),
) )
.with_child( .with_child(
Flex::column() Flex::column()
.align_children_center()
.with_child( .with_child(
Flex::row() Flex::row()
.with_child( .with_child(
@ -1997,9 +1999,8 @@ impl View for ProjectSearchBar {
.contained() .contained()
.with_style(theme.search.container) .with_style(theme.search.container)
.aligned() .aligned()
.left()
.top() .top()
.flex(1., true), .flex(1., false),
) )
.with_child( .with_child(
Flex::column() Flex::column()
@ -2022,7 +2023,9 @@ impl View for ProjectSearchBar {
.read(cx) .read(cx)
.filters_enabled .filters_enabled
.then(|| Flex::row().flex(1., true)), .then(|| Flex::row().flex(1., true)),
), )
.contained()
.flex(1., true),
) )
.contained() .contained()
.flex_float() .flex_float()