fix(chat): read ticks end on the baseline of the message time
- Ticks sat about 1 px above the time baseline (measured in Daniel's screenshot at 125 % and the demo at 100 %); the receipt now drops 0.75 px - c8004e6 only aligned the double tick to the single tick, not to the text Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@@ -65,6 +65,7 @@ const BUBBLE_PADDING_Y: f32 = 8.;
65
65
const META_BOTTOM_INSET: f32 = 4.;
66
66
const META_SIZE: f32 = 11.;
67
67
const META_CHECK_SIZE: f32 = 15.;
68
const TICK_BASELINE_DROP: f32 = 0.75;
68
69
const SAVED_MARK_SIZE: f32 = 12.;
69
70
const FORWARDED_SIZE: f32 = 11.;
70
71
const IMPORTANCE_LABEL_SIZE: f32 = 12.;
@@ -492,7 +493,12 @@ fn bubble_meta(row: &MessageRow, own: bool, saved: bool) -> Div {
492
493
)
493
494
.into_any_element(),
494
495
};
495
let holder = div().id(ElementId::Name(format!("{}-receipt", row.key).into())).child(check);
496
// The tick glyph ends under a pixel above the time baseline; measured on Windows at 125 % and Linux at 100 %.
497
let holder = div()
498
.id(ElementId::Name(format!("{}-receipt", row.key).into()))
499
.relative()
500
.top(px(TICK_BASELINE_DROP))
501
.child(check);
496
502
meta.child(match row.receipt_label.clone() {
497
503
Some(label) => holder.tooltip(move |window, cx| {
498
504
gpui_kit::component::tooltip::Tooltip::new(label.clone()).build(window, cx)
@@ -65,6 +65,7 @@ const BUBBLE_PADDING_Y: f32 = 8.;65
const META_BOTTOM_INSET: f32 = 4.;65
const META_BOTTOM_INSET: f32 = 4.;66
const META_SIZE: f32 = 11.;66
const META_SIZE: f32 = 11.;67
const META_CHECK_SIZE: f32 = 15.;67
const META_CHECK_SIZE: f32 = 15.;68
const TICK_BASELINE_DROP: f32 = 0.75;68
const SAVED_MARK_SIZE: f32 = 12.;69
const SAVED_MARK_SIZE: f32 = 12.;69
const FORWARDED_SIZE: f32 = 11.;70
const FORWARDED_SIZE: f32 = 11.;70
const IMPORTANCE_LABEL_SIZE: f32 = 12.;71
const IMPORTANCE_LABEL_SIZE: f32 = 12.;@@ -492,7 +493,12 @@ fn bubble_meta(row: &MessageRow, own: bool, saved: bool) -> Div {492
)493
)493
.into_any_element(),494
.into_any_element(),494
};495
};495
let holder = div().id(ElementId::Name(format!("{}-receipt", row.key).into())).child(check);496
// The tick glyph ends under a pixel above the time baseline; measured on Windows at 125 % and Linux at 100 %.497
let holder = div()498
.id(ElementId::Name(format!("{}-receipt", row.key).into()))499
.relative()500
.top(px(TICK_BASELINE_DROP))501
.child(check);496
meta.child(match row.receipt_label.clone() {502
meta.child(match row.receipt_label.clone() {497
Some(label) => holder.tooltip(move |window, cx| {503
Some(label) => holder.tooltip(move |window, cx| {498
gpui_kit::component::tooltip::Tooltip::new(label.clone()).build(window, cx)504
gpui_kit::component::tooltip::Tooltip::new(label.clone()).build(window, cx)