mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-15 23:03:57 +00:00
Center the query editor (for real now)
Co-authored-by: Kyle <kyle@zed.dev>
This commit is contained in:
parent
82eb6d8bc3
commit
8fa082c28b
1 changed files with 6 additions and 3 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue