fix(chat): read receipt ticks sit on the timestamp baseline
- drop the 1 px downward offset of the tick icons - remove an unused import Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@@ -1,6 +1,6 @@
1
1
use app_base::format::{self, clock_format};
2
2
use chatsvc::{CalendarEvent, ResponseType, join_info_text};
3
use chrono::{DateTime, Datelike, Local, NaiveDate, Offset, Timelike, Utc};
3
use chrono::{DateTime, Local, NaiveDate, Offset, Timelike, Utc};
4
4
use gpui_kit::assets::IconName;
5
5
use gpui_kit::component::Sizable as _;
6
6
use gpui_kit::component::button::{Button, ButtonVariants as _};
@@ -1,6 +1,6 @@1
use app_base::format::{self, clock_format};1
use app_base::format::{self, clock_format};2
use chatsvc::{CalendarEvent, ResponseType, join_info_text};2
use chatsvc::{CalendarEvent, ResponseType, join_info_text};3
use chrono::{DateTime, Datelike, Local, NaiveDate, Offset, Timelike, Utc};3
use chrono::{DateTime, Local, NaiveDate, Offset, Timelike, Utc};4
use gpui_kit::assets::IconName;4
use gpui_kit::assets::IconName;5
use gpui_kit::component::Sizable as _;5
use gpui_kit::component::Sizable as _;6
use gpui_kit::component::button::{Button, ButtonVariants as _};6
use gpui_kit::component::button::{Button, ButtonVariants as _};@@ -481,16 +481,11 @@ fn bubble_meta(row: &MessageRow, own: bool, saved: bool) -> Div {
481
481
|meta| {
482
482
let check = match row.receipt {
483
483
Receipt::Hidden => return meta,
484
Receipt::Sent => on_baseline(symbol("done", META_CHECK_SIZE, tint)).into_any_element(),
485
Receipt::Read => on_baseline(symbol(
486
"done_all",
487
META_CHECK_SIZE,
488
theme::own_read(),
489
))
490
.into_any_element(),
484
Receipt::Sent => symbol("done", META_CHECK_SIZE, tint).into_any_element(),
485
Receipt::Read => symbol("done_all", META_CHECK_SIZE, theme::own_read()).into_any_element(),
491
486
Receipt::ReadLive => receipt_fade_in(
492
487
&row.key,
493
on_baseline(symbol("done_all", META_CHECK_SIZE, theme::own_read())),
488
div().child(symbol("done_all", META_CHECK_SIZE, theme::own_read())),
494
489
)
495
490
.into_any_element(),
496
491
};
@@ -505,10 +500,6 @@ fn bubble_meta(row: &MessageRow, own: bool, saved: bool) -> Div {
505
500
)
506
501
}
507
502
508
fn on_baseline(check: Icon) -> Div {
509
div().relative().top(px(1.)).child(check)
510
}
511
512
503
fn pulse<E: IntoElement + Styled + 'static>(id: &'static str, element: E) -> AnimationElement<E> {
513
504
element.with_animation(
514
505
id,
@@ -481,16 +481,11 @@ fn bubble_meta(row: &MessageRow, own: bool, saved: bool) -> Div {481
|meta| {481
|meta| {482
let check = match row.receipt {482
let check = match row.receipt {483
Receipt::Hidden => return meta,483
Receipt::Hidden => return meta,484
Receipt::Sent => on_baseline(symbol("done", META_CHECK_SIZE, tint)).into_any_element(),484
Receipt::Sent => symbol("done", META_CHECK_SIZE, tint).into_any_element(),485
Receipt::Read => on_baseline(symbol(485
Receipt::Read => symbol("done_all", META_CHECK_SIZE, theme::own_read()).into_any_element(),486
"done_all",487
META_CHECK_SIZE,488
theme::own_read(),489
))490
.into_any_element(),491
Receipt::ReadLive => receipt_fade_in(486
Receipt::ReadLive => receipt_fade_in(492
&row.key,487
&row.key,493
on_baseline(symbol("done_all", META_CHECK_SIZE, theme::own_read())),488
div().child(symbol("done_all", META_CHECK_SIZE, theme::own_read())),494
)489
)495
.into_any_element(),490
.into_any_element(),496
};491
};@@ -505,10 +500,6 @@ fn bubble_meta(row: &MessageRow, own: bool, saved: bool) -> Div {505
)500
)506
}501
}507
502
508
fn on_baseline(check: Icon) -> Div {509
div().relative().top(px(1.)).child(check)510
}511
512
fn pulse<E: IntoElement + Styled + 'static>(id: &'static str, element: E) -> AnimationElement<E> {503
fn pulse<E: IntoElement + Styled + 'static>(id: &'static str, element: E) -> AnimationElement<E> {513
element.with_animation(504
element.with_animation(514
id,505
id,