fixed broken animation

This commit is contained in:
Nate Kelley 2025-03-10 13:38:49 -06:00
parent c36e120f96
commit 1fa32fae98
No known key found for this signature in database
GPG Key ID: FD90372AB8D98B4F
3 changed files with 9 additions and 9 deletions

View File

@ -70,7 +70,7 @@ const AppMarkdownBase: React.FC<{
}, []);
return (
<div className={cn('leading-1.3 gap-1', styles.container, className)}>
<div className={cn('flex', styles.container, className)}>
<ReactMarkdown
remarkPlugins={[remarkGfm]}
skipHtml={true}

View File

@ -99,12 +99,14 @@ export const ReasoningMessageSelector: React.FC<ReasoningMessageSelectorProps> =
secondaryTitle={secondary_title ?? ''}>
<AnimatePresence mode="wait">
<motion.div key={animationKey} {...itemAnimationConfig} className="overflow-hidden" layout>
<ReasoningMessage
reasoningMessageId={reasoningMessageId}
isCompletedStream={isCompletedStream}
messageId={messageId}
chatId={chatId}
/>
<div className="min-h-[1px]">
<ReasoningMessage
reasoningMessageId={reasoningMessageId}
isCompletedStream={isCompletedStream}
messageId={messageId}
chatId={chatId}
/>
</div>
</motion.div>
</AnimatePresence>
</BarContainer>

View File

@ -12,8 +12,6 @@ export const ReasoningMessage_Text: React.FC<ReasoningMessageProps> = React.memo
(x) => (x?.reasoning_messages[reasoningMessageId] as BusterChatMessageReasoning_text)?.message
)!;
// return <StreamingMessage_Text isCompletedStream={isCompletedStream} message={message} />;
return <AppMarkdown markdown={message} showLoader={!isCompletedStream} stripFormatting />;
}
);