Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion apps/web/src/components/ChatMarkdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,10 @@ function ChatMarkdown({ text, cwd, isStreaming = false }: ChatMarkdownProps) {
);

return (
<div className="chat-markdown w-full min-w-0 text-sm leading-relaxed text-foreground/80">
<div
dir="auto"
className="chat-markdown w-full min-w-0 text-sm leading-relaxed text-foreground/80"
>
<ReactMarkdown remarkPlugins={[remarkGfm]} components={markdownComponents}>
{text}
</ReactMarkdown>
Expand Down
15 changes: 12 additions & 3 deletions apps/web/src/components/chat/MessagesTimeline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,10 @@ const UserMessageBody = memo(function UserMessageBody(props: {
}

return (
<div className="wrap-break-word whitespace-pre-wrap font-mono text-sm leading-relaxed text-foreground">
<div
dir="auto"
className="wrap-break-word whitespace-pre-wrap font-mono text-sm leading-relaxed text-foreground"
>
{inlineNodes}
</div>
);
Expand Down Expand Up @@ -748,7 +751,10 @@ const UserMessageBody = memo(function UserMessageBody(props: {
}

return (
<div className="wrap-break-word whitespace-pre-wrap font-mono text-sm leading-relaxed text-foreground">
<div
dir="auto"
className="wrap-break-word whitespace-pre-wrap font-mono text-sm leading-relaxed text-foreground"
>
{inlineNodes}
</div>
);
Expand All @@ -759,7 +765,10 @@ const UserMessageBody = memo(function UserMessageBody(props: {
}

return (
<pre className="whitespace-pre-wrap wrap-break-word font-mono text-sm leading-relaxed text-foreground">
<pre
dir="auto"
className="whitespace-pre-wrap wrap-break-word font-mono text-sm leading-relaxed text-foreground"
>
{props.text}
</pre>
);
Expand Down
Loading