AI: there're duplication of columns when it comes to unified diff UI.

also in unified diff, you don't need to show the removed line (red). Green is like concise enough to show the change,
This commit is contained in:
LE Quoc Dat 2025-07-28 22:48:57 +02:00
parent 120825d3f1
commit 37f3fb866d
1 changed files with 3 additions and 5 deletions

View File

@ -34,6 +34,7 @@ const UnifiedDiffView: React.FC<{ oldCode: string; newCode: string }> = ({ oldCo
oldValue={oldCode}
newValue={newCode}
splitView={false}
hideLineNumbers={true}
useDarkTheme={document.documentElement.classList.contains('dark')}
styles={{
variables: {
@ -50,11 +51,8 @@ const UnifiedDiffView: React.FC<{ oldCode: string; newCode: string }> = ({ oldCo
backgroundColor: 'var(--card)',
border: 'none',
},
gutter: {
backgroundColor: 'var(--muted)',
'&:hover': {
backgroundColor: 'var(--accent)',
},
diffRemoved: {
display: 'none',
},
line: {
fontFamily: 'monospace',