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

To treat the case for whenever the assistant panel gets small.

<img width="360" alt="Screenshot 2024-12-16 at 20 12 34"
src="https://github.com/user-attachments/assets/5426a5b9-9baf-41e3-a2c6-2f997378c994"
/>

Release Notes:

- N/A
This commit is contained in:
Danilo Leal
2024-12-16 21:43:12 -03:00
committed by GitHub
parent 5558b04223
commit 28087934d1
+1 -1
View File
@@ -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()