From 30668589ed89d29593bbb0483bb96c2023812967 Mon Sep 17 00:00:00 2001 From: Danilo Leal <67129314+danilo-leal@users.noreply.github.com> Date: Tue, 31 Dec 2024 21:09:36 -0300 Subject: [PATCH] Improve project search design details (#22529) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes https://github.com/zed-industries/zed/issues/22469 — and, aside from fixing that issue also took the opportunity to make the `file_search` icon dimensions feel better in comparison the other icons in the Project Search area. Release Notes: - N/A --- assets/icons/file_search.svg | 6 +++++- crates/search/src/buffer_search.rs | 1 + crates/search/src/project_search.rs | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/assets/icons/file_search.svg b/assets/icons/file_search.svg index 9d82151798..ddf5b14770 100644 --- a/assets/icons/file_search.svg +++ b/assets/icons/file_search.svg @@ -1 +1,5 @@ - + + + + + diff --git a/crates/search/src/buffer_search.rs b/crates/search/src/buffer_search.rs index 8e83b459fc..c2e4f1292d 100644 --- a/crates/search/src/buffer_search.rs +++ b/crates/search/src/buffer_search.rs @@ -418,6 +418,7 @@ impl Render for BufferSearchBar { v_flex() .id("buffer_search") .gap_2() + .py(px(1.0)) .track_scroll(&self.scroll_handle) .key_context(key_context) .capture_action(cx.listener(Self::tab)) diff --git a/crates/search/src/project_search.rs b/crates/search/src/project_search.rs index 9272d99524..ca6d83a87f 100644 --- a/crates/search/src/project_search.rs +++ b/crates/search/src/project_search.rs @@ -1905,6 +1905,7 @@ impl Render for ProjectSearchBar { } v_flex() + .py(px(1.0)) .key_context(key_context) .on_action(cx.listener(|this, _: &ToggleFocus, cx| this.move_focus_to_results(cx))) .on_action(cx.listener(|this, _: &ToggleFilters, cx| {