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 & assistant panel toolbar height mismatch (#15552)

Danilo Leal236e72df3834
diff --git a/crates/search/src/buffer_search.rs b/crates/search/src/buffer_search.rs
index cff5aa7fc83..cfd4ee1d9ca 100644
--- a/crates/search/src/buffer_search.rs
+++ b/crates/search/src/buffer_search.rs
@@ -196,6 +196,7 @@ impl Render for BufferSearchBar {
};
let search_line = h_flex()
+ .mb_1()
.child(
h_flex()
.id("editor-scroll")
@@ -295,7 +296,7 @@ impl Render for BufferSearchBar {
&SelectNextMatch,
))
.when(!narrow_mode, |this| {
- this.child(h_flex().min_w(rems_from_px(40.)).child(
+ this.child(h_flex().ml_2().min_w(rems_from_px(40.)).child(
Label::new(match_text).color(if self.active_match_index.is_some() {
Color::Default
} else {
diff --git a/crates/workspace/src/toolbar.rs b/crates/workspace/src/toolbar.rs
index 3d65ceb4311..e2f731b0b70 100644
--- a/crates/workspace/src/toolbar.rs
+++ b/crates/workspace/src/toolbar.rs
@@ -105,6 +105,7 @@ impl Render for Toolbar {
.bg(cx.theme().colors().toolbar_background)
.child(
h_flex()
+ .min_h(rems_from_px(24.))
.justify_between()
.gap(Spacing::Large.rems(cx))
.when(has_left_items, |this| {