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 editor height in buffer search, but the dancing is back

KCaverly6f78a1633dd0
diff --git a/crates/search/src/buffer_search.rs b/crates/search/src/buffer_search.rs
index 6fe8712ee08..0637191f971 100644
--- a/crates/search/src/buffer_search.rs
+++ b/crates/search/src/buffer_search.rs
@@ -263,6 +263,7 @@ impl View for BufferSearchBar {
.constrained()
.with_min_width(theme.search.editor.min_width)
.with_max_width(theme.search.editor.max_width)
+ .with_height(theme.search.search_bar_row_height)
.flex(1., false),
)
.contained()
@@ -295,6 +296,7 @@ impl View for BufferSearchBar {
.with_child(mode_column)
.contained()
.with_style(theme.search.container)
+ .aligned()
.into_any_named("search bar")
}
}