fix(chat): select mode shows one band over the selected rows; ticks 0.5 px lower
- Selected rows are tinted edge to edge including the row gap, so neighbours form one band instead of separate blocks - Read ticks drop 0.5 px instead of 0.75 px: at 125 % the old value rounded to 2 physical pixels and put them below the time Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@@ -65,7 +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
const TICK_BASELINE_DROP: f32 = 0.5;
69
69
const SAVED_MARK_SIZE: f32 = 12.;
70
70
const FORWARDED_SIZE: f32 = 11.;
71
71
const IMPORTANCE_LABEL_SIZE: f32 = 12.;
@@ -493,7 +493,7 @@ fn bubble_meta(row: &MessageRow, own: bool, saved: bool) -> Div {
493
493
)
494
494
.into_any_element(),
495
495
};
496
// The tick glyph ends under a pixel above the time baseline; measured on Windows at 125 % and Linux at 100 %.
496
// The tick glyph ends about half a pixel above the time baseline (measured at 100 % and 125 %).
497
497
let holder = div()
498
498
.id(ElementId::Name(format!("{}-receipt", row.key).into()))
499
499
.relative()
@@ -858,8 +858,12 @@ pub fn render_message_row(
858
858
.child(
859
859
div()
860
860
.id(ElementId::Name(format!("row-{index}").into()))
861
.w_full()
861
.mx(px(-ROW_PADDING))
862
.px(px(ROW_PADDING))
862
863
.pt(spacing)
864
.when(checked && !highlighted, |element| {
865
element.bg(theme::accent().opacity(SELECTED_TINT))
866
})
863
867
.map(|element| match (open_context, reply) {
864
868
(Some(open_context), _) => element.on_mouse_down(MouseButton::Right, move |event, _, cx| {
865
869
cx.stop_propagation();
@@ -869,15 +873,7 @@ pub fn render_message_row(
869
873
(None, None) => element,
870
874
})
871
875
.children(context_menu)
872
.child(
873
div()
874
.w_full()
875
.rounded(px(10.))
876
.when(checked && !highlighted, |element| {
877
element.bg(theme::accent().opacity(SELECTED_TINT))
878
})
879
.child(body),
880
),
876
.child(body),
881
877
)
882
878
.into_any_element()
883
879
}
@@ -65,7 +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 TICK_BASELINE_DROP: f32 = 0.5;69
const SAVED_MARK_SIZE: f32 = 12.;69
const SAVED_MARK_SIZE: f32 = 12.;70
const FORWARDED_SIZE: f32 = 11.;70
const FORWARDED_SIZE: f32 = 11.;71
const IMPORTANCE_LABEL_SIZE: f32 = 12.;71
const IMPORTANCE_LABEL_SIZE: f32 = 12.;@@ -493,7 +493,7 @@ fn bubble_meta(row: &MessageRow, own: bool, saved: bool) -> Div {493
)493
)494
.into_any_element(),494
.into_any_element(),495
};495
};496
// The tick glyph ends under a pixel above the time baseline; measured on Windows at 125 % and Linux at 100 %.496
// The tick glyph ends about half a pixel above the time baseline (measured at 100 % and 125 %).497
let holder = div()497
let holder = div()498
.id(ElementId::Name(format!("{}-receipt", row.key).into()))498
.id(ElementId::Name(format!("{}-receipt", row.key).into()))499
.relative()499
.relative()@@ -858,8 +858,12 @@ pub fn render_message_row(858
.child(858
.child(859
div()859
div()860
.id(ElementId::Name(format!("row-{index}").into()))860
.id(ElementId::Name(format!("row-{index}").into()))861
.w_full()861
.mx(px(-ROW_PADDING))862
.px(px(ROW_PADDING))862
.pt(spacing)863
.pt(spacing)864
.when(checked && !highlighted, |element| {865
element.bg(theme::accent().opacity(SELECTED_TINT))866
})863
.map(|element| match (open_context, reply) {867
.map(|element| match (open_context, reply) {864
(Some(open_context), _) => element.on_mouse_down(MouseButton::Right, move |event, _, cx| {868
(Some(open_context), _) => element.on_mouse_down(MouseButton::Right, move |event, _, cx| {865
cx.stop_propagation();869
cx.stop_propagation();@@ -869,15 +873,7 @@ pub fn render_message_row(869
(None, None) => element,873
(None, None) => element,870
})874
})871
.children(context_menu)875
.children(context_menu)872
.child(876
.child(body),873
div()874
.w_full()875
.rounded(px(10.))876
.when(checked && !highlighted, |element| {877
element.bg(theme::accent().opacity(SELECTED_TINT))878
})879
.child(body),880
),881
)877
)882
.into_any_element()878
.into_any_element()883
}879
}