Skip to content

Commit

Permalink
Improve project search design details (#22529)
Browse files Browse the repository at this point in the history
Closes #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
  • Loading branch information
danilo-leal authored Jan 1, 2025
1 parent 51ac2d3 commit 3066858
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion assets/icons/file_search.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions crates/search/src/buffer_search.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
1 change: 1 addition & 0 deletions crates/search/src/project_search.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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| {
Expand Down

0 comments on commit 3066858

Please sign in to comment.