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 inconsistent sizing between the buffer search and the project search (#3951)

Marshall Bowers8214a7f6567a
diff --git a/crates/breadcrumbs/src/breadcrumbs.rs b/crates/breadcrumbs/src/breadcrumbs.rs
index 2e4306f0bc2..e41c0c06b18 100644
--- a/crates/breadcrumbs/src/breadcrumbs.rs
+++ b/crates/breadcrumbs/src/breadcrumbs.rs
@@ -67,7 +67,10 @@ impl Render for Breadcrumbs {
})
.tooltip(|cx| Tooltip::for_action("Show symbol outline", &outline::Toggle, cx)),
),
- None => element.child(breadcrumbs_stack),
+ None => element
+ // Match the height of the `ButtonLike` in the other arm.
+ .h(rems(22. / 16.))
+ .child(breadcrumbs_stack),
}
}
}
diff --git a/crates/quick_action_bar/src/quick_action_bar.rs b/crates/quick_action_bar/src/quick_action_bar.rs
index d8c42589d63..b40794c2fad 100644
--- a/crates/quick_action_bar/src/quick_action_bar.rs
+++ b/crates/quick_action_bar/src/quick_action_bar.rs
@@ -95,7 +95,6 @@ impl Render for QuickActionBar {
h_stack()
.id("quick action bar")
- .p_1()
.gap_2()
.children(inlay_hints_button)
.children(search_button)