fix(chat): reaction pill emoji centred on the avatars
- The emoji gets its own line box instead of the pill's taller line height Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@@ -77,7 +77,10 @@ fn faces_width(count: usize) -> f32 {
77
77
fn reaction_emoji(glyph: &str, label: &str, size: f32, directory: &Directory) -> AnyElement {
78
78
let Some(image) = custom_emoji_image(glyph) else {
79
79
return div()
80
.flex_none()
81
.h(px(size))
80
82
.text_size(px(size))
83
.line_height(px(size))
81
84
.child(label.to_owned())
82
85
.into_any_element();
83
86
};
@@ -77,7 +77,10 @@ fn faces_width(count: usize) -> f32 {77
fn reaction_emoji(glyph: &str, label: &str, size: f32, directory: &Directory) -> AnyElement {77
fn reaction_emoji(glyph: &str, label: &str, size: f32, directory: &Directory) -> AnyElement {78
let Some(image) = custom_emoji_image(glyph) else {78
let Some(image) = custom_emoji_image(glyph) else {79
return div()79
return div()80
.flex_none()81
.h(px(size))80
.text_size(px(size))82
.text_size(px(size))83
.line_height(px(size))81
.child(label.to_owned())84
.child(label.to_owned())82
.into_any_element();85
.into_any_element();83
};86
};