Skip to content

Commit e766096

Browse files
committed
attempt to make the user name format with ellipsis
1 parent 7ec66bd commit e766096

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/ui/src/channel/message.rs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,15 @@ pub fn message<M: Message>(message: MessageGroup<M>) -> impl IntoElement {
5959
.gap_4()
6060
.pb_6()
6161
.child(img(message.get_author().get_icon()).flex_shrink_0().object_fit(gpui::ObjectFit::Fill).bg(rgb(0xFFFFFF)).rounded_full().w_12().h_12())
62-
.child(div().flex().min_w_0().flex_shrink().flex_col().child(message.get_author().get_display_name()).children(message.contents()))
62+
.child(
63+
div()
64+
.flex()
65+
.min_w_0()
66+
.flex_shrink()
67+
.flex_col()
68+
// enabling this, and thus enabling ellipsis causes a consistent panic!?
69+
// .child(div().text_ellipsis().min_w_0().child(message.get_author().get_display_name()))
70+
.child(div().min_w_0().child(message.get_author().get_display_name()))
71+
.children(message.contents()),
72+
)
6373
}

0 commit comments

Comments
 (0)