Skip to content

Commit 33aa93e

Browse files
committed
feat: replace diff icon in code editor
1 parent f743905 commit 33aa93e

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

src/Common/CodeEditor/CodeEditor.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import { configureMonacoYaml } from 'monaco-yaml'
2323
import { ReactComponent as ICWarningY5 } from '@Icons/ic-warning-y5.svg'
2424
import { ReactComponent as Info } from '../../Assets/Icon/ic-info-filled.svg'
2525
import { ReactComponent as ErrorIcon } from '../../Assets/Icon/ic-error-exclamation.svg'
26+
import { ReactComponent as ICCompare } from '@Icons/ic-compare.svg'
2627
import './codeEditor.scss'
2728
import 'monaco-editor'
2829

@@ -491,7 +492,7 @@ const SplitPane = ({}) => {
491492
}
492493
return (
493494
<div className="code-editor__split-pane flex pointer" onClick={handleToggle}>
494-
<div className="diff-icon" />
495+
<ICCompare className="icon-dim-20 mr-4" />
495496
{state.diffMode ? 'Hide comparison' : 'Compare with default'}
496497
</div>
497498
)

src/Common/CodeEditor/codeEditor.scss

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -121,13 +121,6 @@
121121
color: var(--N0);
122122
}
123123

124-
.diff-icon {
125-
height: 20px;
126-
width: 20px;
127-
margin-right: 4px;
128-
background: url('../../Assets/Icon/ic-compare.svg');
129-
}
130-
131124
.monaco-editor-hover {
132125
margin-left: 40px;
133126
}

0 commit comments

Comments
 (0)