Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

remove redundant and unneeded styling

KCaverlya59535efa126
diff --git a/crates/search/src/buffer_search.rs b/crates/search/src/buffer_search.rs
index daf92151fc1..6fe8712ee08 100644
--- a/crates/search/src/buffer_search.rs
+++ b/crates/search/src/buffer_search.rs
@@ -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)
diff --git a/crates/search/src/project_search.rs b/crates/search/src/project_search.rs
index d0a1aa95c1e..884f56bda5b 100644
--- a/crates/search/src/project_search.rs
+++ b/crates/search/src/project_search.rs
@@ -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()
diff --git a/styles/src/style_tree/search.ts b/styles/src/style_tree/search.ts
index abb27f39e81..4dfa9624b4b 100644
--- a/styles/src/style_tree/search.ts
+++ b/styles/src/style_tree/search.ts
@@ -152,8 +152,6 @@ export default function search(): any {
padding: {
left: 12,
right: 12,
- // top: 3,
- // bottom: 3,
},
},
include_exclude_inputs: {