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.

Make the query editor expand in size less

Piotr Osiewicz3f87c3541f06
diff --git a/crates/search2/src/project_search.rs b/crates/search2/src/project_search.rs
index 1b2a502ab87..253730a692c 100644
--- a/crates/search2/src/project_search.rs
+++ b/crates/search2/src/project_search.rs
@@ -1730,7 +1730,7 @@ impl Render for ProjectSearchBar {
let search = search.read(cx);
let query_column = v_stack()
- .flex_1()
+ //.flex_1()
.child(
h_stack()
.min_w_80()
@@ -1868,7 +1868,7 @@ impl Render for ProjectSearchBar {
.child(search.replacement_editor.clone())
} else {
// Fill out the space if we don't have a replacement editor.
- h_stack().size_full()
+ h_stack().flex_1()
};
let actions_column = h_stack()
.when(search.replace_enabled, |this| {