From ff3ee67d2f3997b13f3c0bdc6b910512d2854a2e Mon Sep 17 00:00:00 2001 From: Thomas Petersen Date: Thu, 14 May 2026 21:05:55 -0400 Subject: [PATCH] fix(ui): align home timestamps and loading skeletons Co-authored-by: Cursor --- .../src/features/home/ui/InboxDetailPane.tsx | 78 +++++++++---------- .../features/messages/ui/TimelineSkeleton.tsx | 13 ++-- desktop/src/shared/ui/ViewLoadingFallback.tsx | 15 ++-- 3 files changed, 55 insertions(+), 51 deletions(-) diff --git a/desktop/src/features/home/ui/InboxDetailPane.tsx b/desktop/src/features/home/ui/InboxDetailPane.tsx index ca76f71165..151a1f5415 100644 --- a/desktop/src/features/home/ui/InboxDetailPane.tsx +++ b/desktop/src/features/home/ui/InboxDetailPane.tsx @@ -277,7 +277,7 @@ export function InboxDetailPane({
+ {canReply || onToggleReaction ? ( +
+ { + const actionBarMessage = + toActionBarMessage(message); + const remove = + actionBarMessage.reactions?.some( + (reaction) => + reaction.emoji === emoji && + reaction.reactedByCurrentUser, + ) ?? false; + return onToggleReaction( + actionBarMessage, + emoji, + remove, + ); + } + : undefined + } + onReply={ + canReply + ? () => handleSelectReplyTarget(message) + : undefined + } + reactions={message.reactions ?? []} + /> +
+ ) : null}
-
+

{message.authorLabel}

+

+ {message.fullTimestampLabel} +

{message.isSelected ? ( Inbox item ) : null} -

- {message.fullTimestampLabel} -

- {canReply || onToggleReaction ? ( -
-
- { - const actionBarMessage = - toActionBarMessage(message); - const remove = - actionBarMessage.reactions?.some( - (reaction) => - reaction.emoji === emoji && - reaction.reactedByCurrentUser, - ) ?? false; - return onToggleReaction( - actionBarMessage, - emoji, - remove, - ); - } - : undefined - } - onReply={ - canReply - ? () => handleSelectReplyTarget(message) - : undefined - } - reactions={message.reactions ?? []} - /> -
-
- ) : null}
- {skeletonRows.map((row) => ( + {skeletonRows.map((row, index) => (
- +
- - - +
+ + +
+ +
))} diff --git a/desktop/src/shared/ui/ViewLoadingFallback.tsx b/desktop/src/shared/ui/ViewLoadingFallback.tsx index 64dbc4f2c8..29243f7a9d 100644 --- a/desktop/src/shared/ui/ViewLoadingFallback.tsx +++ b/desktop/src/shared/ui/ViewLoadingFallback.tsx @@ -45,13 +45,16 @@ function LoadingHeaderSkeleton() { function MessageRowsSkeleton() { return ( <> - {["first", "second", "third", "fourth", "fifth"].map((row) => ( + {["first", "second", "third", "fourth", "fifth"].map((row, index) => (
- -
- - - + +
+
+ + +
+ +
))}