From 6ceec5d9a21f17e3a9cc9760001c70b92557739a Mon Sep 17 00:00:00 2001 From: Danilo Leal <67129314+danilo-leal@users.noreply.github.com> Date: Fri, 13 Dec 2024 00:51:51 -0300 Subject: [PATCH] Fix project and buffer search input width (#21949) Closes https://github.com/zed-industries/zed/issues/21922 Now, both the project and buffer search inputs have a min-width set so that text inside it, as well as the additional controls, are always visible even at the window's smallest possible size, which looks like this: Screenshot 2024-12-13 at 00 35 46 Release Notes: - N/A --- crates/search/src/buffer_search.rs | 1 + crates/search/src/project_search.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/crates/search/src/buffer_search.rs b/crates/search/src/buffer_search.rs index 7d13ea1f2a..794737bd80 100644 --- a/crates/search/src/buffer_search.rs +++ b/crates/search/src/buffer_search.rs @@ -209,6 +209,7 @@ impl Render for BufferSearchBar { let input_base_styles = || { h_flex() + .min_w_32() .w(input_width) .h_8() .px_2() diff --git a/crates/search/src/project_search.rs b/crates/search/src/project_search.rs index 9caec6af34..2a90ff41c7 100644 --- a/crates/search/src/project_search.rs +++ b/crates/search/src/project_search.rs @@ -1595,6 +1595,7 @@ impl Render for ProjectSearchBar { let input_base_styles = || { h_flex() + .min_w_32() .w(input_width) .h_8() .px_2()