From 32bd95107ef87bb9d3a35e2b6441e768d802f1d5 Mon Sep 17 00:00:00 2001 From: Kunall Banerjee Date: Sun, 1 Mar 2026 05:11:15 -0500 Subject: [PATCH] search: Fix popover spacing for split diff buttons (#49655) Closes #49571. | Before | After | |--------|--------| | image | image | Before you mark this PR as ready for review, make sure that you have: - [x] Added a solid test coverage and/or screenshots from doing manual testing - [x] Done a self-review taking into account security and performance aspects - [x] Aligned any UI changes with the [UI checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist) Release Notes: - Fixed popover spacing for split diff buttons --- crates/search/src/buffer_search.rs | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/crates/search/src/buffer_search.rs b/crates/search/src/buffer_search.rs index 9ec4a8259f5d92b41ef8e3fc300bb23d8503b301..35cd25dc389d522fc2a3d0ed88b8e06a9e181e67 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"),