diff --git a/frontend/src/chat.css b/frontend/src/chat.css index 70666447..253a43d5 100644 --- a/frontend/src/chat.css +++ b/frontend/src/chat.css @@ -609,6 +609,7 @@ .markdown-body table td { padding: 6px 13px; border: 1px solid var(--color-border-default); + white-space: nowrap; } .markdown-body table tr { diff --git a/frontend/src/components/markdown.tsx b/frontend/src/components/markdown.tsx index 43813071..fb5f8578 100644 --- a/frontend/src/components/markdown.tsx +++ b/frontend/src/components/markdown.tsx @@ -269,10 +269,16 @@ function ResponsiveTable({ children, className, ...rest }: JSX.IntrinsicElements const { node, inline, ...safeRest } = rest as Record; return ( -
- - {children} -
+
+
+ + {children} +
+
); } diff --git a/frontend/src/routes/_auth.chat.$chatId.tsx b/frontend/src/routes/_auth.chat.$chatId.tsx index 6afb14f9..d5baf8cf 100644 --- a/frontend/src/routes/_auth.chat.$chatId.tsx +++ b/frontend/src/routes/_auth.chat.$chatId.tsx @@ -102,7 +102,9 @@ function UserMessage({ message, chatId }: { message: ChatMessage; chatId: string
-
{renderContent(message.content, chatId)}
+
+ {renderContent(message.content, chatId)} +
); @@ -295,7 +297,7 @@ function SystemMessage({
-
+