From 18333b208ead69eb4c9ec48cd4c405eefca674fa Mon Sep 17 00:00:00 2001 From: spencrmartin Date: Tue, 18 Nov 2025 09:02:55 -0500 Subject: [PATCH] fix: position pending invites above popular topics on left side --- ui/desktop/src/components/BaseChat.tsx | 10 +++++----- ui/desktop/src/components/PendingInvitesInHistory.tsx | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/ui/desktop/src/components/BaseChat.tsx b/ui/desktop/src/components/BaseChat.tsx index dabe49dc3b..3ca243e957 100644 --- a/ui/desktop/src/components/BaseChat.tsx +++ b/ui/desktop/src/components/BaseChat.tsx @@ -533,17 +533,17 @@ function BaseChatContent({ ) : !recipeConfig && showPopularTopics ? ( /* Show PopularChatTopics when no messages, no recipe, and showPopularTopics is true (Pair view) */ -
- append(text)} /> - - {/* Show pending invites if enabled - positioned on the right side */} +
+ {/* Show pending invites above popular topics if enabled */} {showPendingInvites && ( )} + + append(text)} />
) : showPendingInvites ? ( /* Show only pending invites when no messages and showPendingInvites is true */ -
+
) : null /* Show nothing when messages.length === 0 && suppressEmptyState === true */ diff --git a/ui/desktop/src/components/PendingInvitesInHistory.tsx b/ui/desktop/src/components/PendingInvitesInHistory.tsx index 38069983b0..0a29a174f4 100644 --- a/ui/desktop/src/components/PendingInvitesInHistory.tsx +++ b/ui/desktop/src/components/PendingInvitesInHistory.tsx @@ -192,13 +192,13 @@ const PendingInvitesInHistory: React.FC = ({ ); } - // Separate section style (shows as a dedicated section matching PopularChatTopics) + // Separate section style (shows above PopularChatTopics with same styling) return ( -
+

Outstanding invitations ({pendingInvites.length})

-
+
{pendingInvites.map((invite) => (