mirror of https://github.com/kortix-ai/suna.git
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:
parent
120825d3f1
commit
37f3fb866d
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue