fix(ui): typing line uses the full message avatar with the dots after it
One person typing in a chat now shows the 28 px avatar at the message avatar column instead of a small indented face; several people keep the stack. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@@ -726,16 +726,24 @@ impl ConversationView {
726
726
.map(|face| face.name.clone())
727
727
.collect::<Vec<_>>(),
728
728
);
729
let text_inset = match self.current.as_ref().map(|current| ¤t.mode) {
730
Some(ViewMode::Flat) => AVATAR_SIZE + AVATAR_GAP,
731
_ => 0.,
729
let flat = matches!(
730
self.current.as_ref().map(|current| ¤t.mode),
731
Some(ViewMode::Flat)
732
);
733
let faces_element = match faces.as_slice() {
734
[face] if flat => person_avatar(
735
&app.directory,
736
face.user_id.as_deref(),
737
&face.name,
738
AVATAR_SIZE,
739
),
740
_ => member_stack(&app.directory, &faces, faces.len()).into_any_element(),
732
741
};
733
742
h_flex()
734
.h(px(TYPING_LINE_HEIGHT))
743
.h(px(if flat { AVATAR_SIZE + 4. } else { TYPING_LINE_HEIGHT }))
735
744
.flex_none()
736
.pl(px(20. + text_inset))
737
.pr(px(20.))
738
.gap(px(6.))
745
.px(px(20.))
746
.gap(px(if flat { AVATAR_GAP } else { 6. }))
739
747
.items_center()
740
748
.when(!faces.is_empty(), |line| {
741
749
line.child(
@@ -744,7 +752,7 @@ impl ConversationView {
744
752
.tooltip(move |window, cx| {
745
753
Tooltip::new(tooltip_text.clone()).build(window, cx)
746
754
})
747
.child(member_stack(&app.directory, &faces, faces.len())),
755
.child(faces_element),
748
756
)
749
757
.child(typing_dots())
750
758
})
@@ -726,16 +726,24 @@ impl ConversationView {726
.map(|face| face.name.clone())726
.map(|face| face.name.clone())727
.collect::<Vec<_>>(),727
.collect::<Vec<_>>(),728
);728
);729
let text_inset = match self.current.as_ref().map(|current| ¤t.mode) {729
let flat = matches!(730
Some(ViewMode::Flat) => AVATAR_SIZE + AVATAR_GAP,730
self.current.as_ref().map(|current| ¤t.mode),731
_ => 0.,731
Some(ViewMode::Flat)732
);733
let faces_element = match faces.as_slice() {734
[face] if flat => person_avatar(735
&app.directory,736
face.user_id.as_deref(),737
&face.name,738
AVATAR_SIZE,739
),740
_ => member_stack(&app.directory, &faces, faces.len()).into_any_element(),732
};741
};733
h_flex()742
h_flex()734
.h(px(TYPING_LINE_HEIGHT))743
.h(px(if flat { AVATAR_SIZE + 4. } else { TYPING_LINE_HEIGHT }))735
.flex_none()744
.flex_none()736
.pl(px(20. + text_inset))745
.px(px(20.))737
.pr(px(20.))746
.gap(px(if flat { AVATAR_GAP } else { 6. }))738
.gap(px(6.))739
.items_center()747
.items_center()740
.when(!faces.is_empty(), |line| {748
.when(!faces.is_empty(), |line| {741
line.child(749
line.child(@@ -744,7 +752,7 @@ impl ConversationView {744
.tooltip(move |window, cx| {752
.tooltip(move |window, cx| {745
Tooltip::new(tooltip_text.clone()).build(window, cx)753
Tooltip::new(tooltip_text.clone()).build(window, cx)746
})754
})747
.child(member_stack(&app.directory, &faces, faces.len())),755
.child(faces_element),748
)756
)749
.child(typing_dots())757
.child(typing_dots())750
})758
})