diff --git a/web/src/app/chat/components/message-list-view.tsx b/web/src/app/chat/components/message-list-view.tsx
index b925835..d745006 100644
--- a/web/src/app/chat/components/message-list-view.tsx
+++ b/web/src/app/chat/components/message-list-view.tsx
@@ -10,7 +10,10 @@ import { LoadingAnimation } from "~/components/deer-flow/loading-animation";
import { Markdown } from "~/components/deer-flow/markdown";
import { RainbowText } from "~/components/deer-flow/rainbow-text";
import { RollingText } from "~/components/deer-flow/rolling-text";
-import { ScrollContainer, type ScrollContainerRef } from "~/components/deer-flow/scroll-container";
+import {
+ ScrollContainer,
+ type ScrollContainerRef,
+} from "~/components/deer-flow/scroll-container";
import { Tooltip } from "~/components/deer-flow/tooltip";
import { Button } from "~/components/ui/button";
import {
@@ -81,7 +84,9 @@ export function MessageListView({
scrollContainerRef.current.scrollToBottom();
}
}, 500);
- return () => { clearTimeout(timer); };
+ return () => {
+ clearTimeout(timer);
+ };
}, []);
return (
@@ -119,7 +124,7 @@ function MessageListItem({
interruptMessage,
onFeedback,
onSendMessage,
- onToggleResearch
+ onToggleResearch,
}: {
className?: string;
messageId: string;
@@ -166,7 +171,10 @@ function MessageListItem({
} else if (startOfResearch) {
content = (
-
+
);
} else {
@@ -221,7 +229,7 @@ function MessageListItem({
className={cn(
`flex w-fit max-w-[85%] flex-col rounded-2xl px-4 py-3 shadow`,
message.role === "user" &&
- "text-primary-foreground bg-brand rounded-ee-none",
+ "text-primary-foreground bg-brand rounded-ee-none",
message.role === "assistant" && "bg-card rounded-es-none",
className,
)}
@@ -234,7 +242,7 @@ function MessageListItem({
function ResearchCard({
className,
researchId,
- onToggleResearch
+ onToggleResearch,
}: {
className?: string;
researchId: string;
@@ -332,16 +340,17 @@ function PlanCard({
-
- {`### ${plan.title !== undefined && plan.title !== ""
- ? plan.title
- : "Deep Research"
- }`}
+
+ {`### ${
+ plan.title !== undefined && plan.title !== ""
+ ? plan.title
+ : "Deep Research"
+ }`}
-
+
{plan.thought}
{plan.steps && (
@@ -349,10 +358,10 @@ function PlanCard({
{plan.steps.map((step, i) => (
- {step.title}
+ {step.title}
- {step.description}
+ {step.description}
))}
diff --git a/web/src/app/chat/components/research-activities-block.tsx b/web/src/app/chat/components/research-activities-block.tsx
index 9d8e9e4..408e802 100644
--- a/web/src/app/chat/components/research-activities-block.tsx
+++ b/web/src/app/chat/components/research-activities-block.tsx
@@ -75,7 +75,7 @@ function ActivityMessage({ messageId }: { messageId: string }) {
if (message.agent !== "reporter" && message.agent !== "planner") {
return (
- {message.content}
+ {message.content}
);
}
diff --git a/web/src/app/chat/components/research-report-block.tsx b/web/src/app/chat/components/research-report-block.tsx
index 57365e5..e27b894 100644
--- a/web/src/app/chat/components/research-report-block.tsx
+++ b/web/src/app/chat/components/research-report-block.tsx
@@ -62,7 +62,7 @@ export function ResearchReportBlock({
/>
) : (
<>
- {message?.content}
+ {message?.content}
{message?.isStreaming && }
>
)}
diff --git a/web/src/components/deer-flow/markdown.tsx b/web/src/components/deer-flow/markdown.tsx
index 1e70474..f465ac2 100644
--- a/web/src/components/deer-flow/markdown.tsx
+++ b/web/src/components/deer-flow/markdown.tsx
@@ -24,20 +24,20 @@ export function Markdown({
children,
style,
enableCopy,
- animate = false,
+ animated = false,
...props
}: ReactMarkdownOptions & {
className?: string;
enableCopy?: boolean;
style?: React.CSSProperties;
- animate?: boolean;
+ animated?: boolean;
}) {
const rehypePlugins = useMemo(() => {
- if (animate) {
+ if (animated) {
return [rehypeKatex, rehypeSplitWordsIntoSpans];
}
return [rehypeKatex];
- }, [animate]);
+ }, [animated]);
return (