diff --git a/desktop/src/components/chat/DiffViewer.tsx b/desktop/src/components/chat/DiffViewer.tsx index ec1e5ffb..2e6e36bb 100644 --- a/desktop/src/components/chat/DiffViewer.tsx +++ b/desktop/src/components/chat/DiffViewer.tsx @@ -25,8 +25,8 @@ export function DiffViewer({ filePath, oldString, newString }: Props) { const deletions = lines.filter((line) => line.type === 'removed').length return ( -
-
+
+
{filePath} @@ -49,10 +49,10 @@ export function DiffViewer({ filePath, oldString, newString }: Props) { {lines.map((line, index) => { const rowClass = line.type === 'added' - ? 'bg-[#f0fff4]' + ? 'bg-[#dafbe1]/60 border-l-2 border-l-[#1a7f37]' : line.type === 'removed' - ? 'bg-[#fff8f8]' - : 'bg-white' + ? 'bg-[#ffebe9]/60 border-l-2 border-l-[#cf222e]' + : 'bg-white border-l-2 border-l-transparent' const prefix = line.type === 'added' ? '+' : line.type === 'removed' ? '-' : ' ' const prefixColor = line.type === 'added' @@ -64,16 +64,16 @@ export function DiffViewer({ filePath, oldString, newString }: Props) { return (
- + {line.oldLineNo ?? ''} - + {line.newLineNo ?? ''} - {prefix} - {line.content} + {prefix} + {line.content}
) })}