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:
parent
b9432dbe42
commit
ad14dcc57b
1 changed files with 10 additions and 5 deletions
|
@ -223,13 +223,18 @@ pub fn render_thread_context_entry(
|
||||||
h_flex()
|
h_flex()
|
||||||
.gap_1p5()
|
.gap_1p5()
|
||||||
.w_full()
|
.w_full()
|
||||||
|
.justify_between()
|
||||||
|
.child(
|
||||||
|
h_flex()
|
||||||
|
.gap_1p5()
|
||||||
|
.max_w_72()
|
||||||
.child(
|
.child(
|
||||||
Icon::new(IconName::MessageCircle)
|
Icon::new(IconName::MessageCircle)
|
||||||
.size(IconSize::XSmall)
|
.size(IconSize::XSmall)
|
||||||
.color(Color::Muted),
|
.color(Color::Muted),
|
||||||
)
|
)
|
||||||
.child(Label::new(thread.summary.clone()))
|
.child(Label::new(thread.summary.clone()).truncate()),
|
||||||
.child(div().w_full())
|
)
|
||||||
.when(added, |el| {
|
.when(added, |el| {
|
||||||
el.child(
|
el.child(
|
||||||
h_flex()
|
h_flex()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue