BlueGit

ict rusty-teams

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>

metis Daniel Däschle · pushed by metis

Authored 2026-11-09 · 3 weeks ago

Hash
a666fcc552d4e5799e058030588db179d52215bc
Parent
3c8fb360
2 files changed +4 −13
crates/app/src/views/calendar_view.rs +1 −1
@@ -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 @@
1use app_base::format::{self, clock_format};
1use app_base::format::{self, clock_format};
2use chatsvc::{CalendarEvent, ResponseType, join_info_text};
2use chatsvc::{CalendarEvent, ResponseType, join_info_text};
3use chrono::{DateTime, Datelike, Local, NaiveDate, Offset, Timelike, Utc};
3use chrono::{DateTime, Local, NaiveDate, Offset, Timelike, Utc};
4use gpui_kit::assets::IconName;
4use gpui_kit::assets::IconName;
5use gpui_kit::component::Sizable as _;
5use gpui_kit::component::Sizable as _;
6use gpui_kit::component::button::{Button, ButtonVariants as _};
6use gpui_kit::component::button::{Button, ButtonVariants as _};
crates/app/src/views/message_row.rs +3 −12
@@ -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
508fn on_baseline(check: Icon) -> Div {
509 div().relative().top(px(1.)).child(check)
510}
511
512fn pulse<E: IntoElement + Styled + 'static>(id: &'static str, element: E) -> AnimationElement<E> {
503fn pulse<E: IntoElement + Styled + 'static>(id: &'static str, element: E) -> AnimationElement<E> {
513 element.with_animation(
504 element.with_animation(
514 id,
505 id,