Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
assistant2: Truncate thread title in context picker (#26775)
Danilo Lealad14dcc57b36
diff --git a/crates/assistant2/src/context_picker/thread_context_picker.rs b/crates/assistant2/src/context_picker/thread_context_picker.rsindex 2b42543ba0e..914745e2247 100644--- a/crates/assistant2/src/context_picker/thread_context_picker.rs+++ b/crates/assistant2/src/context_picker/thread_context_picker.rs@@ -223,13 +223,18 @@ pub fn render_thread_context_entry(h_flex().gap_1p5().w_full()+ .justify_between().child(- Icon::new(IconName::MessageCircle)- .size(IconSize::XSmall)- .color(Color::Muted),+ h_flex()+ .gap_1p5()+ .max_w_72()+ .child(+ Icon::new(IconName::MessageCircle)+ .size(IconSize::XSmall)+ .color(Color::Muted),+ )+ .child(Label::new(thread.summary.clone()).truncate()),)- .child(Label::new(thread.summary.clone()))- .child(div().w_full()).when(added, |el| {el.child(h_flex()