fix: position pending invites above popular topics on left side

This commit is contained in:
spencrmartin
2025-11-18 09:02:55 -05:00
parent 9c61e4aa2c
commit 18333b208e
2 changed files with 8 additions and 8 deletions
+5 -5
View File
@@ -533,17 +533,17 @@ function BaseChatContent({
</>
) : !recipeConfig && showPopularTopics ? (
/* Show PopularChatTopics when no messages, no recipe, and showPopularTopics is true (Pair view) */
<div className="relative">
<PopularChatTopics append={(text: string) => append(text)} />
{/* Show pending invites if enabled - positioned on the right side */}
<div className="absolute bottom-0 left-0">
{/* Show pending invites above popular topics if enabled */}
{showPendingInvites && (
<PendingInvitesInHistory showInChatHistory={false} />
)}
<PopularChatTopics append={(text: string) => append(text)} />
</div>
) : showPendingInvites ? (
/* Show only pending invites when no messages and showPendingInvites is true */
<div className="relative">
<div className="absolute bottom-0 left-0">
<PendingInvitesInHistory showInChatHistory={false} />
</div>
) : null /* Show nothing when messages.length === 0 && suppressEmptyState === true */
@@ -192,13 +192,13 @@ const PendingInvitesInHistory: React.FC<PendingInvitesInHistoryProps> = ({
);
}
// Separate section style (shows as a dedicated section matching PopularChatTopics)
// Separate section style (shows above PopularChatTopics with same styling)
return (
<div className={`absolute bottom-0 right-0 p-6 max-w-md ${className}`}>
<div className={`p-6 max-w-md ${className}`}>
<h3 className="text-text-muted text-sm mb-1">
Outstanding invitations ({pendingInvites.length})
</h3>
<div className="space-y-1">
<div className="space-y-1 mb-8">
<AnimatePresence>
{pendingInvites.map((invite) => (
<motion.div