From cbc403d3f3477cb2ddef08ffe2831cbef1d179ec Mon Sep 17 00:00:00 2001 From: Danilo Leal <67129314+danilo-leal@users.noreply.github.com> Date: Fri, 10 Jan 2025 11:37:57 -0300 Subject: [PATCH] assistant2: Change suggested file context pill label (#22967) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Changing it from "Open File" to "Active Tab" instead. Screenshot 2025-01-10 at 11 09 54 AM Release Notes: - N/A --- crates/assistant2/src/ui/context_pill.rs | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/crates/assistant2/src/ui/context_pill.rs b/crates/assistant2/src/ui/context_pill.rs index 6e5de117288096d67933dd568a26428636ff9ccc..3a5b81d4a9a3c567fd322bbf8b91cbd330b852c6 100644 --- a/crates/assistant2/src/ui/context_pill.rs +++ b/crates/assistant2/src/ui/context_pill.rs @@ -145,14 +145,16 @@ impl RenderOnce for ContextPill { .color(Color::Muted), ) .child( - Label::new(match kind { - ContextKind::File => "Open File", - ContextKind::Thread | ContextKind::Directory | ContextKind::FetchedUrl => { - "Active" - } - }) - .size(LabelSize::XSmall) - .color(Color::Muted), + div().px_0p5().child( + Label::new(match kind { + ContextKind::File => "Active Tab", + ContextKind::Thread + | ContextKind::Directory + | ContextKind::FetchedUrl => "Active", + }) + .size(LabelSize::XSmall) + .color(Color::Muted), + ), ) .child( Icon::new(IconName::Plus)