From ea55c4a70fc802bbe10923ceb64da0cfa1f42ca2 Mon Sep 17 00:00:00 2001 From: Dhravya Shah Date: Sun, 4 Aug 2024 11:20:51 -0700 Subject: better markdown rendering --- apps/web/app/(dash)/chat/chatWindow.tsx | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/apps/web/app/(dash)/chat/chatWindow.tsx b/apps/web/app/(dash)/chat/chatWindow.tsx index a691c0ce..c9c96a2f 100644 --- a/apps/web/app/(dash)/chat/chatWindow.tsx +++ b/apps/web/app/(dash)/chat/chatWindow.tsx @@ -288,10 +288,10 @@ function ChatWindow({ )} -
-
+
+
Answer
-
+
{/* Loading state */} {(chat.answer.parts.length === 0 || chat.answer.parts.join("").length === 0) && ( @@ -316,11 +316,7 @@ function ChatWindow({ }, ], ]} - components={{ - code: code as any, - p: p as any, - }} - className="flex flex-col gap-2 text-base" + className="flex flex-col gap-2 w-full" > {removeJustificationFromText( chat.answer.parts -- cgit v1.2.3