Change summary
crates/search/src/buffer_search.rs | 3 ---
crates/search/src/project_search.rs | 11 +++--------
styles/src/style_tree/search.ts | 2 --
3 files changed, 3 insertions(+), 13 deletions(-)
Detailed changes
@@ -221,7 +221,6 @@ impl View for BufferSearchBar {
};
let icon_style = theme.search.editor_icon.clone();
- let side_column_min_width = 165.;
let nav_column = Flex::row()
.with_child(self.render_action_button("Select All", cx))
.with_child(nav_button_for_direction("<", Direction::Prev, cx))
@@ -289,8 +288,6 @@ impl View for BufferSearchBar {
.with_height(theme.search.search_bar_row_height)
.aligned()
.right()
- .constrained()
- .with_min_width(side_column_min_width)
.flex_float();
Flex::row()
.with_child(editor_column)
@@ -327,10 +327,8 @@ impl View for ProjectSearchView {
let semantic_status = if let Some(semantic) = &self.semantic_state {
if semantic.outstanding_file_count > 0 {
- let dots_count = semantic.outstanding_file_count % 3 + 1;
- let dots: String = std::iter::repeat('.').take(dots_count).collect();
format!(
- "Indexing: {} of {}{dots}",
+ "Indexing: {} of {}...",
semantic.file_count - semantic.outstanding_file_count,
semantic.file_count
)
@@ -1473,10 +1471,10 @@ impl View for ProjectSearchBar {
let included_files_view = ChildView::new(&search.included_files_editor, cx)
.contained()
- .flex(1.0, true);
+ .flex(1., true);
let excluded_files_view = ChildView::new(&search.excluded_files_editor, cx)
.contained()
- .flex(1.0, true);
+ .flex(1., true);
let filters = search.filters_enabled.then(|| {
Flex::row()
.with_child(
@@ -1569,7 +1567,6 @@ impl View for ProjectSearchBar {
.constrained()
.with_height(theme.search.search_bar_row_height);
- let side_column_min_width = 200.;
let mode_column = Flex::row()
.with_child(
Flex::row()
@@ -1595,8 +1592,6 @@ impl View for ProjectSearchBar {
.aligned()
.right()
.top()
- .constrained()
- .with_min_width(side_column_min_width)
.flex_float();
Flex::row()
@@ -152,8 +152,6 @@ export default function search(): any {
padding: {
left: 12,
right: 12,
- // top: 3,
- // bottom: 3,
},
},
include_exclude_inputs: {