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>
@@ -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.;66
const META_BOTTOM_INSET: f32 = 4.;66
const META_BOTTOM_INSET: f32 = 4.;67
const META_SIZE: f32 = 11.;67
const META_SIZE: f32 = 11.;68
const META_CHECK_SIZE: f32 = 15.;68
const META_CHECK_SIZE: f32 = 15.;69
const TICK_BASELINE_DROP: f32 = 0.5;70
const SAVED_MARK_SIZE: f32 = 12.;69
const SAVED_MARK_SIZE: f32 = 12.;71
const FORWARDED_SIZE: f32 = 11.;70
const FORWARDED_SIZE: f32 = 11.;72
const IMPORTANCE_LABEL_SIZE: f32 = 12.;71
const 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| {