diff options
| author | Dhravya Shah <[email protected]> | 2024-08-05 18:44:12 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-08-05 18:44:12 -0700 |
| commit | e21e7706d800b2591c1f4db5c618682d025036ec (patch) | |
| tree | bc68191799e04f24e561630172037717414697c4 | |
| parent | Merge pull request #223 from iiAbady/patch-1 (diff) | |
| parent | better markdown rendering (diff) | |
| download | supermemory-e21e7706d800b2591c1f4db5c618682d025036ec.tar.xz supermemory-e21e7706d800b2591c1f4db5c618682d025036ec.zip | |
Merge pull request #206 from supermemoryai/better-markdown
Better markdown Rendering
| -rw-r--r-- | apps/web/app/(dash)/chat/chatWindow.tsx | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/apps/web/app/(dash)/chat/chatWindow.tsx b/apps/web/app/(dash)/chat/chatWindow.tsx index 98377f08..60acd16d 100644 --- a/apps/web/app/(dash)/chat/chatWindow.tsx +++ b/apps/web/app/(dash)/chat/chatWindow.tsx @@ -288,10 +288,10 @@ function ChatWindow({ </div> )} - <div className="flex flex-col mt-2"> - <div> + <div className="flex flex-col mt-2 w-full"> + <div className="w-full"> <div className="text-foreground-menu py-2">Answer</div> - <div className="text-base"> + <div className="text-base prose prose-invert prose-headings:py-0 prose-h1:py-4 prose-h2:py-4 prose-headings:-my-2 prose-h1:text-2xl prose-h2:text-xl prose:min-w-full min-w-full"> {/* 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 |