assistant2: Truncate thread title in context picker (#26775)

Similar issue as in https://github.com/zed-industries/zed/pull/26721.

Release Notes:

- N/A
This commit is contained in:
Danilo Leal 2025-03-14 11:03:57 -03:00 committed by GitHub
parent b9432dbe42
commit ad14dcc57b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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()