From 8fa082c28b3d7c8da6beef1f2e524e1523419fe6 Mon Sep 17 00:00:00 2001 From: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com> Date: Fri, 4 Aug 2023 17:49:54 +0200 Subject: [PATCH] Center the query editor (for real now) Co-authored-by: Kyle --- crates/search/src/project_search.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/crates/search/src/project_search.rs b/crates/search/src/project_search.rs index 6a000091e4..6b303d2ce8 100644 --- a/crates/search/src/project_search.rs +++ b/crates/search/src/project_search.rs @@ -1973,10 +1973,12 @@ impl View for ProjectSearchBar { .aligned() .left(), ) + .contained() .flex(1., true), ) .with_child( Flex::column() + .align_children_center() .with_child( Flex::row() .with_child( @@ -1997,9 +1999,8 @@ impl View for ProjectSearchBar { .contained() .with_style(theme.search.container) .aligned() - .left() .top() - .flex(1., true), + .flex(1., false), ) .with_child( Flex::column() @@ -2022,7 +2023,9 @@ impl View for ProjectSearchBar { .read(cx) .filters_enabled .then(|| Flex::row().flex(1., true)), - ), + ) + .contained() + .flex(1., true), ) .contained() .flex_float()