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.

search: Fix popover spacing for split diff buttons (#49655)

Kunall Banerjee32bd95107ef8
diff --git a/crates/search/src/buffer_search.rs b/crates/search/src/buffer_search.rs
index 9ec4a8259f5..35cd25dc389 100644
--- a/crates/search/src/buffer_search.rs
+++ b/crates/search/src/buffer_search.rs
@@ -117,18 +117,17 @@ impl Render for BufferSearchBar {
.toggle_state(!is_split)
.tooltip(Tooltip::element(move |_, cx| {
v_flex()
- .gap_1()
- .child(Label::new("Unified"))
+ .child("Unified")
.child(
h_flex()
.gap_0p5()
- .text_sm()
+ .text_ui_sm(cx)
.text_color(Color::Muted.color(cx))
.children(render_modifiers(
&gpui::Modifiers::secondary_key(),
PlatformStyle::platform(),
None,
- Some(TextSize::Default.rems(cx).into()),
+ Some(TextSize::Small.rems(cx).into()),
false,
))
.child("click to set as default"),
@@ -168,18 +167,17 @@ impl Render for BufferSearchBar {
.toggle_state(is_split)
.tooltip(Tooltip::element(move |_, cx| {
v_flex()
- .gap_1()
- .child(Label::new("Split"))
+ .child("Split")
.child(
h_flex()
.gap_0p5()
- .text_sm()
+ .text_ui_sm(cx)
.text_color(Color::Muted.color(cx))
.children(render_modifiers(
&gpui::Modifiers::secondary_key(),
PlatformStyle::platform(),
None,
- Some(TextSize::Default.rems(cx).into()),
+ Some(TextSize::Small.rems(cx).into()),
false,
))
.child("click to set as default"),