@@ -70,6 +70,7 @@ import {
7070} from "lucide-react"
7171import { cn } from "@/lib/utils"
7272import { PathTooltip } from "../ui/PathTooltip"
73+ import { OpenMarkdownPreviewButton } from "./OpenMarkdownPreviewButton"
7374
7475// Helper function to get previous todos before a specific message
7576function getPreviousTodos ( messages : ClineMessage [ ] , currentMessageTs : number ) : any [ ] {
@@ -1205,10 +1206,12 @@ export const ChatRowContent = ({
12051206 return null // we should never see this message type
12061207 case "text" :
12071208 return (
1208- < div >
1209+ < div className = "group" >
12091210 < div style = { headerStyle } >
12101211 < MessageCircle className = "w-4 shrink-0" aria-label = "Speech bubble icon" />
12111212 < span style = { { fontWeight : "bold" } } > { t ( "chat:text.rooSaid" ) } </ span >
1213+ < div style = { { flexGrow : 1 } } />
1214+ < OpenMarkdownPreviewButton markdown = { message . text } />
12121215 </ div >
12131216 < div className = "pl-6" >
12141217 < Markdown markdown = { message . text } partial = { message . partial } />
@@ -1343,15 +1346,17 @@ export const ChatRowContent = ({
13431346 )
13441347 case "completion_result" :
13451348 return (
1346- < >
1349+ < div className = "group" >
13471350 < div style = { headerStyle } >
13481351 { icon }
13491352 { title }
1353+ < div style = { { flexGrow : 1 } } />
1354+ < OpenMarkdownPreviewButton markdown = { message . text } />
13501355 </ div >
13511356 < div className = "border-l border-green-600/30 ml-2 pl-4 pb-1" >
13521357 < Markdown markdown = { message . text } />
13531358 </ div >
1354- </ >
1359+ </ div >
13551360 )
13561361 case "shell_integration_warning" :
13571362 return < CommandExecutionError />
@@ -1602,10 +1607,12 @@ export const ChatRowContent = ({
16021607 case "completion_result" :
16031608 if ( message . text ) {
16041609 return (
1605- < div >
1610+ < div className = "group" >
16061611 < div style = { headerStyle } >
16071612 { icon }
16081613 { title }
1614+ < div style = { { flexGrow : 1 } } />
1615+ < OpenMarkdownPreviewButton markdown = { message . text } />
16091616 </ div >
16101617 < div style = { { color : "var(--vscode-charts-green)" , paddingTop : 10 } } >
16111618 < Markdown markdown = { message . text } partial = { message . partial } />
0 commit comments