diff --git a/frontend/src/components/thread/tool-views/file-operation/FileEditToolView.tsx b/frontend/src/components/thread/tool-views/file-operation/FileEditToolView.tsx index b073924e..2d72c053 100644 --- a/frontend/src/components/thread/tool-views/file-operation/FileEditToolView.tsx +++ b/frontend/src/components/thread/tool-views/file-operation/FileEditToolView.tsx @@ -41,7 +41,6 @@ import { import { Badge } from '@/components/ui/badge'; import { Button } from '@/components/ui/button'; import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs"; -import { ScrollArea } from "@/components/ui/scroll-area"; import { extractFileEditData, generateLineDiff, @@ -73,6 +72,7 @@ const UnifiedDiffView: React.FC<{ oldCode: string; newCode: string }> = ({ oldCo newValue={newCode} splitView={false} hideLineNumbers={true} + showDiffOnly={false} useDarkTheme={document.documentElement.classList.contains('dark')} styles={{ variables: { @@ -377,53 +377,49 @@ export function FileEditToolView({ - - - - {isStreaming && !updatedContent ? ( - - ) : shouldShowError ? ( - - ) : ( - renderSourceCode() - )} - + + + {isStreaming && !updatedContent ? ( + + ) : shouldShowError ? ( + + ) : ( + renderSourceCode() + )} - - - {isStreaming && !updatedContent ? ( - - ) : shouldShowError ? ( - - ) : ( - renderFilePreview() - )} - {isStreaming && updatedContent && ( -
- - - Streaming... - -
- )} -
+ + {isStreaming && !updatedContent ? ( + + ) : shouldShowError ? ( + + ) : ( + renderFilePreview() + )} + {isStreaming && updatedContent && ( +
+ + + Streaming... + +
+ )}