Skip to content

Commit

Permalink
assistant2: Add text_ellipsis to the PastThread label (zed-industri…
Browse files Browse the repository at this point in the history
…es#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
  • Loading branch information
danilo-leal authored Dec 17, 2024
1 parent 5558b04 commit 2808793
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/assistant2/src/thread_history.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 2808793

Please sign in to comment.