From 7c268d0c6dcf1883835e97c99e444cee93929b2d Mon Sep 17 00:00:00 2001 From: Danilo Leal <67129314+danilo-leal@users.noreply.github.com> Date: Sat, 17 Aug 2024 13:30:32 -0300 Subject: [PATCH] assistant: Remove meta description from quote selection tooltip (#16412) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The original idea was for the keybinding to be within the description, but given it's already inline with the title, I figure we don't need this anymore—cleaning it up a bit! --- Release Notes: - N/A --- crates/assistant/src/assistant_panel.rs | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/crates/assistant/src/assistant_panel.rs b/crates/assistant/src/assistant_panel.rs index 5b752e083b3549be48fd82fdf4beb9ea2a4986be..ac7f31f396434289d74f97fa1d7559de261184e6 100644 --- a/crates/assistant/src/assistant_panel.rs +++ b/crates/assistant/src/assistant_panel.rs @@ -3745,17 +3745,15 @@ impl Render for ContextEditor { }) .tooltip(move |cx| { cx.new_view(|cx| { - Tooltip::new("Insert Selection") - .meta("Press to quote via keyboard") - .key_binding(focus_handle.as_ref().and_then( - |handle| { - KeyBinding::for_action_in( - &QuoteSelection, - &handle, - cx, - ) - }, - )) + Tooltip::new("Insert Selection").key_binding( + focus_handle.as_ref().and_then(|handle| { + KeyBinding::for_action_in( + &QuoteSelection, + &handle, + cx, + ) + }), + ) }) .into() }),