Enhance ChatBubble and ChatBOX components to display loading messages; improve structure and formatting for better readability

This commit is contained in:
ecwu
2024-12-21 21:40:06 +08:00
parent 1c1c46b67d
commit 001bc479c2
2 changed files with 17 additions and 12 deletions

View File

@@ -680,7 +680,9 @@ export default function ChatBOX(props: {
))}
{showGenerating && (
<ChatBubble variant="received">
<ChatBubbleMessage isLoading />
<ChatBubbleMessage isLoading>
{generatingMessage}
</ChatBubbleMessage>
</ChatBubble>
)}
<p className="text-center">