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.

Fix project and buffer search input width (#21949)

Danilo Leal6ceec5d9a21f
diff --git a/crates/search/src/buffer_search.rs b/crates/search/src/buffer_search.rs
index 7d13ea1f2a0..794737bd802 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 9caec6af34b..2a90ff41c77 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()