Move toggle ignored button into include directories editor

This commit is contained in:
Kirill Bulatov 2023-11-14 22:43:33 +02:00
parent 9373d38434
commit c52fe2f536

View file

@ -1875,7 +1875,6 @@ impl View for ProjectSearchBar {
.with_child(filter_button) .with_child(filter_button)
.with_children(case_sensitive) .with_children(case_sensitive)
.with_children(whole_word) .with_children(whole_word)
.with_children(include_ignored)
.flex(1., false) .flex(1., false)
.constrained() .constrained()
.contained(), .contained(),
@ -1890,9 +1889,17 @@ impl View for ProjectSearchBar {
.flex(1., false), .flex(1., false),
) )
.with_children(search.filters_enabled.then(|| { .with_children(search.filters_enabled.then(|| {
Flex::row()
.with_child(
Flex::row() Flex::row()
.with_child( .with_child(
ChildView::new(&search.included_files_editor, cx) ChildView::new(&search.included_files_editor, cx)
.contained()
.constrained()
.with_height(theme.search.search_bar_row_height)
.flex(1., true),
)
.with_children(include_ignored)
.contained() .contained()
.with_style(include_container_style) .with_style(include_container_style)
.constrained() .constrained()