Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
2 changes: 1 addition & 1 deletion apps/web/src/components/ChatMarkdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ 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
6 changes: 3 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,7 @@ 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 +748,7 @@ 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 +759,7 @@ 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