remove redundant and unneeded styling

Co-authored-by: Piotr <piotr@zed.dev>
This commit is contained in:
KCaverly 2023-08-16 12:55:32 +01:00
parent d727ba18f2
commit a59535efa1
3 changed files with 3 additions and 13 deletions

View File

@ -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)

View File

@ -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()

View File

@ -152,8 +152,6 @@ export default function search(): any {
padding: {
left: 12,
right: 12,
// top: 3,
// bottom: 3,
},
},
include_exclude_inputs: {