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

Closes #49571.

| Before | After |
|--------|--------|
| <img width="455" height="141" alt="image"
src="https://github.com/user-attachments/assets/538b011d-40e7-4ca5-b3dd-b1b8b993fd8f"
/> | <img width="475" height="187" alt="image"
src="https://github.com/user-attachments/assets/b091320e-726a-4cc7-b9d9-85c27f04c75a"
/> |

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
This commit is contained in:
Kunall Banerjee authored and GitHub committed 2026-03-01 10:11:15 +00:00
1 parent 924c74bd3b
commit 32bd95107e
1 file changed
+6 -8
+6 -8
View File
@@ -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"),