mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Update track change decoration to be cursor-like (#21047)
* Update track change decoration to be cursor-like * use red-50 color GitOrigin-RevId: 8c8a2cb9c6abc99aa1d2dace705dba3feeda07fa
This commit is contained in:
parent
db3c69fbcd
commit
42eea0017d
1 changed files with 12 additions and 9 deletions
|
@ -325,7 +325,6 @@ class ChangeDeletedWidget extends WidgetType {
|
|||
const widget = document.createElement('span')
|
||||
widget.classList.add('ol-cm-change')
|
||||
widget.classList.add('ol-cm-change-d')
|
||||
widget.textContent = '[ — ]'
|
||||
if (this.highlightType) {
|
||||
widget.classList.add(`ol-cm-change-d-${this.highlightType}`)
|
||||
}
|
||||
|
@ -409,24 +408,28 @@ const trackChangesTheme = EditorView.baseTheme({
|
|||
},
|
||||
// TODO: fix dark mode colors
|
||||
'&light .ol-cm-change-d': {
|
||||
color: '#c5060b',
|
||||
backgroundColor: '#f5beba57',
|
||||
borderLeft: '2px dotted #c5060b',
|
||||
marginLeft: '-1px',
|
||||
},
|
||||
'&dark .ol-cm-change-d': {
|
||||
color: '#c5060b',
|
||||
backgroundColor: '#f5beba57',
|
||||
borderLeft: '2px dotted #c5060b',
|
||||
marginLeft: '-1px',
|
||||
},
|
||||
'&light .ol-cm-change-d-highlight': {
|
||||
backgroundColor: '#f5bebaa4',
|
||||
borderLeft: '3px solid #c5060b',
|
||||
marginLeft: '-2px',
|
||||
},
|
||||
'&dark .ol-cm-change-d-highlight': {
|
||||
backgroundColor: '#f5bebaa4',
|
||||
borderLeft: '3px solid #c5060b',
|
||||
marginLeft: '-2px',
|
||||
},
|
||||
'&light .ol-cm-change-d-focus': {
|
||||
backgroundColor: '#F5BEBA',
|
||||
borderLeft: '3px solid #B83A33',
|
||||
marginLeft: '-2px',
|
||||
},
|
||||
'&dark .ol-cm-change-d-focus': {
|
||||
backgroundColor: '#F5BEBA',
|
||||
borderLeft: '3px solid #B83A33',
|
||||
marginLeft: '-2px',
|
||||
},
|
||||
'&light .ol-cm-change-highlight-i': {
|
||||
backgroundColor: '#b8dbc899',
|
||||
|
|
Loading…
Reference in a new issue