From 3044fc1bdd89ee432034d16390b6f968c75b54d4 Mon Sep 17 00:00:00 2001 From: Patrick O'Sullivan Date: Wed, 8 Jan 2025 09:18:52 -0600 Subject: [PATCH] chat: reduce contact tap target to just author/contact name --- packages/ui/src/components/AuthorRow.tsx | 59 ++++++++++++------------ 1 file changed, 29 insertions(+), 30 deletions(-) diff --git a/packages/ui/src/components/AuthorRow.tsx b/packages/ui/src/components/AuthorRow.tsx index 77d5e7a718..19756b4b72 100644 --- a/packages/ui/src/components/AuthorRow.tsx +++ b/packages/ui/src/components/AuthorRow.tsx @@ -134,38 +134,37 @@ export function ChatAuthorRow({ const shouldTruncate = showEditedIndicator || firstRole || deliveryFailed; return ( - - - - - - + + + + + + + {timeDisplay && ( + + {timeDisplay} + + )} + {showEditedIndicator && ( + + Edited + + )} + {firstRole && } + {deliveryFailed ? ( + + Tap to retry - {timeDisplay && ( - - {timeDisplay} - - )} - {showEditedIndicator && ( - - Edited - - )} - {firstRole && } - {deliveryFailed ? ( - - Tap to retry - - ) : null} - - {!!deliveryStatus && deliveryStatus !== 'failed' ? ( - ) : null} - + {!!deliveryStatus && deliveryStatus !== 'failed' ? ( + + ) : null} + ); }