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.

Style buffer modes like project modes

Piotr Osiewicz8bb3bfa6a87d
diff --git a/crates/search/src/buffer_search.rs b/crates/search/src/buffer_search.rs
index 585672c45bb..681c098a37f 100644
--- a/crates/search/src/buffer_search.rs
+++ b/crates/search/src/buffer_search.rs
@@ -237,7 +237,8 @@ impl View for BufferSearchBar {
.left()
.top()
.flex(1., true)
- .constrained(),
+ .constrained()
+ .with_max_height(theme.search.search_bar_row_height),
)
.contained(),
)
@@ -280,6 +281,7 @@ impl View for BufferSearchBar {
.constrained()
.with_min_width(theme.search.editor.min_width)
.with_max_width(theme.search.editor.max_width)
+ .with_max_height(theme.search.search_bar_row_height)
.flex(1., false),
)
.with_child(
@@ -307,6 +309,8 @@ impl View for BufferSearchBar {
|_, this, cx| this.dismiss(&Default::default(), cx),
Some(Box::new(Dismiss)),
))
+ .constrained()
+ .with_height(theme.search.search_bar_row_height)
.contained()
.aligned()
.right()