BlueGit

ict rusty-teams

fix(chat): receipt tick centered on the message time

- Drops the 0.5 px baseline drop; at 125 % on Windows it pushed the tick below the digit center
- Linux at 100 %: digits and tick both centered on the same row (measured)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

metis Daniel Däschle · pushed by metis

Authored 2026-11-16 · 2 weeks ago

Hash
144ed1a9f934b9348b062f7c00029f3bbe1b7988
Parent
60a32412
1 file changed +0 −4
crates/app/src/views/message_row.rs +0 −4
@@ -66,7 +66,6 @@ const BUBBLE_PADDING_Y: f32 = 8.;
66 66 const META_BOTTOM_INSET: f32 = 4.;
67 67 const META_SIZE: f32 = 11.;
68 68 const META_CHECK_SIZE: f32 = 15.;
69 const TICK_BASELINE_DROP: f32 = 0.5;
70 69 const SAVED_MARK_SIZE: f32 = 12.;
71 70 const FORWARDED_SIZE: f32 = 11.;
72 71 const IMPORTANCE_LABEL_SIZE: f32 = 12.;
@@ -500,11 +499,8 @@ fn bubble_meta(row: &MessageRow, own: bool, saved: bool) -> Div {
500 499 )
501 500 .into_any_element(),
502 501 };
503 // The tick glyph ends about half a pixel above the time baseline (measured at 100 % and 125 %).
504 502 let holder = div()
505 503 .id(ElementId::Name(format!("{}-receipt", row.key).into()))
506 .relative()
507 .top(px(TICK_BASELINE_DROP))
508 504 .child(check);
509 505 meta.child(match row.receipt_label.clone() {
510 506 Some(label) => holder.tooltip(move |window, cx| {
@@ -66,7 +66,6 @@ const BUBBLE_PADDING_Y: f32 = 8.;
66const META_BOTTOM_INSET: f32 = 4.;
66const META_BOTTOM_INSET: f32 = 4.;
67const META_SIZE: f32 = 11.;
67const META_SIZE: f32 = 11.;
68const META_CHECK_SIZE: f32 = 15.;
68const META_CHECK_SIZE: f32 = 15.;
69const TICK_BASELINE_DROP: f32 = 0.5;
70const SAVED_MARK_SIZE: f32 = 12.;
69const SAVED_MARK_SIZE: f32 = 12.;
71const FORWARDED_SIZE: f32 = 11.;
70const FORWARDED_SIZE: f32 = 11.;
72const IMPORTANCE_LABEL_SIZE: f32 = 12.;
71const IMPORTANCE_LABEL_SIZE: f32 = 12.;
@@ -500,11 +499,8 @@ fn bubble_meta(row: &MessageRow, own: bool, saved: bool) -> Div {
500 )
499 )
501 .into_any_element(),
500 .into_any_element(),
502 };
501 };
503 // The tick glyph ends about half a pixel above the time baseline (measured at 100 % and 125 %).
504 let holder = div()
502 let holder = div()
505 .id(ElementId::Name(format!("{}-receipt", row.key).into()))
503 .id(ElementId::Name(format!("{}-receipt", row.key).into()))
506 .relative()
507 .top(px(TICK_BASELINE_DROP))
508 .child(check);
504 .child(check);
509 meta.child(match row.receipt_label.clone() {
505 meta.child(match row.receipt_label.clone() {
510 Some(label) => holder.tooltip(move |window, cx| {
506 Some(label) => holder.tooltip(move |window, cx| {