Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

assistant2: Add text_ellipsis to the `PastThread` label (#22117)

Danilo Leal28087934d11a
diff --git a/crates/assistant2/src/thread_history.rs b/crates/assistant2/src/thread_history.rs
index b7e792e15b7..9d069da0e1d 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()