Skip to content

Commit 1f30149

Browse files
committed
use Markdown for summary
1 parent 29e055c commit 1f30149

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

webview-ui/src/components/chat/ContextCondenseRow.tsx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { useTranslation } from "react-i18next"
33
import { VSCodeBadge } from "@vscode/webview-ui-toolkit/react"
44

55
import { ContextCondense } from "@roo/schemas"
6+
import { Markdown } from "./Markdown"
67

78
const ContextCondenseRow = ({ cost, prevContextTokens, newContextTokens, summary }: ContextCondense) => {
89
const { t } = useTranslation()
@@ -25,9 +26,13 @@ const ContextCondenseRow = ({ cost, prevContextTokens, newContextTokens, summary
2526
</div>
2627

2728
{isExpanded && (
28-
<div className="mt-2 ml-6 p-3 bg-vscode-editor-background rounded text-vscode-foreground text-sm">
29-
<h3 className="font-bold mb-2">{t("chat:contextCondense.conversationSummary")}</h3>
30-
{summary}
29+
<div className="mt-2 ml-0 p-4 bg-vscode-editor-background rounded text-vscode-foreground text-sm">
30+
<h3 className="font-bold mb-4" style={{ marginBottom: 20, marginTop: -4, marginLeft: 8 }}>
31+
{t("chat:contextCondense.conversationSummary")}
32+
</h3>
33+
<div style={{ marginLeft: -24 }}>
34+
<Markdown markdown={summary} />
35+
</div>
3136
</div>
3237
)}
3338
</div>

0 commit comments

Comments
 (0)