From 28087934d11ac2dba244151d6a2a7039321c7900 Mon Sep 17 00:00:00 2001 From: Danilo Leal <67129314+danilo-leal@users.noreply.github.com> Date: Mon, 16 Dec 2024 21:43:12 -0300 Subject: [PATCH] assistant2: Add text_ellipsis to the `PastThread` label (#22117) To treat the case for whenever the assistant panel gets small. Screenshot 2024-12-16 at 20 12 34 Release Notes: - N/A --- crates/assistant2/src/thread_history.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/assistant2/src/thread_history.rs b/crates/assistant2/src/thread_history.rs index b7e792e15b7c3e496fd94eeb47c7ec9efd377469..9d069da0e1d9b772d0dc81d50c1f52a87db29c20 100644 --- a/crates/assistant2/src/thread_history.rs +++ b/crates/assistant2/src/thread_history.rs @@ -126,7 +126,7 @@ impl RenderOnce for PastThread { .color(Color::Muted), ) .spacing(ListItemSpacing::Sparse) - .child(Label::new(summary).size(LabelSize::Small)) + .child(Label::new(summary).size(LabelSize::Small).text_ellipsis()) .end_slot( h_flex() .gap_2()