diff --git a/webview-ui/src/components/chat/ChatRow.tsx b/webview-ui/src/components/chat/ChatRow.tsx index aaaaaae09d..238f130ebe 100644 --- a/webview-ui/src/components/chat/ChatRow.tsx +++ b/webview-ui/src/components/chat/ChatRow.tsx @@ -1122,18 +1122,64 @@ export const ChatRowContent = ({ return null // we should never see this message type case "text": return ( -
+
{t("chat:text.rooSaid")}
- - {message.images && message.images.length > 0 && ( -
- {message.images.map((image, index) => ( - - ))} + {isEditing ? ( +
+ +
+ ) : ( +
+
+ + {message.images && message.images.length > 0 && ( +
+ {message.images.map((image, index) => ( + + ))} +
+ )} +
+
+
{ + e.stopPropagation() + handleEditClick() + }}> + +
+
{ + e.stopPropagation() + vscode.postMessage({ type: "deleteMessage", value: message.ts }) + }}> + +
+
)}