Просмотр исходного кода

Merge pull request #12883 from overleaf/td-history-deletion-marker-fix

History migration: Fix deletion marker class in theme

GitOrigin-RevId: d84c97632f467b116024ffc0992970b9aa586294
Tim Down 3 лет назад
Родитель
Сommit
91db36bc01
1 измененных файлов с 1 добавлено и 6 удалено
  1. 1 6
      services/web/frontend/js/features/history/extensions/highlights.ts

+ 1 - 6
services/web/frontend/js/features/history/extensions/highlights.ts

@@ -74,13 +74,8 @@ const theme = EditorView.baseTheme({
     paddingBottom: 'var(--half-leading)',
     paddingBottom: 'var(--half-leading)',
     backgroundColor: 'hsl(var(--hue), 70%, 85%)',
     backgroundColor: 'hsl(var(--hue), 70%, 85%)',
   },
   },
-  '.ol-deletion-marker': {
+  '.ol-cm-deletion-marker': {
     textDecoration: 'line-through',
     textDecoration: 'line-through',
-  },
-  '&.overall-theme-dark .ol-deletion-marker': {
-    color: 'hsl(var(--hue), 100%, 60%)',
-  },
-  '&.overall-theme-light .ol-deletion-marker': {
     color: 'hsl(var(--hue), 70%, 40%)',
     color: 'hsl(var(--hue), 70%, 40%)',
   },
   },
   '.cm-tooltip-hover': {
   '.cm-tooltip-hover': {