mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-10-07 02:58:15 +00:00
feat(ui): sync BatchDiffApproval styling with BatchFilePermission (#4640)
This commit is contained in:
parent
2cb02d6512
commit
9eb9fabee0
1 changed files with 17 additions and 15 deletions
|
|
@ -33,22 +33,24 @@ export const BatchDiffApproval = memo(({ files = [], ts }: BatchDiffApprovalProp
|
|||
|
||||
return (
|
||||
<div className="pt-[5px]">
|
||||
{files.map((file) => {
|
||||
// Combine all diffs into a single diff string for this file
|
||||
const combinedDiff = file.diffs?.map((diff) => diff.content).join("\n\n") || file.content
|
||||
<div className="flex flex-col gap-0 border border-border rounded-md p-1">
|
||||
{files.map((file) => {
|
||||
// Combine all diffs into a single diff string for this file
|
||||
const combinedDiff = file.diffs?.map((diff) => diff.content).join("\n\n") || file.content
|
||||
|
||||
return (
|
||||
<div key={`${file.path}-${ts}`} className="mb-2">
|
||||
<CodeAccordian
|
||||
path={file.path}
|
||||
code={combinedDiff}
|
||||
language="diff"
|
||||
isExpanded={expandedFiles[file.path] || false}
|
||||
onToggleExpand={() => handleToggleExpand(file.path)}
|
||||
/>
|
||||
</div>
|
||||
)
|
||||
})}
|
||||
return (
|
||||
<div key={`${file.path}-${ts}`}>
|
||||
<CodeAccordian
|
||||
path={file.path}
|
||||
code={combinedDiff}
|
||||
language="diff"
|
||||
isExpanded={expandedFiles[file.path] || false}
|
||||
onToggleExpand={() => handleToggleExpand(file.path)}
|
||||
/>
|
||||
</div>
|
||||
)
|
||||
})}
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue