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

Merge pull request #17381 from overleaf/ae-firefox-change-callout

Hide comment/change callout line in Firefox

GitOrigin-RevId: fe0803c71beb1073cf6715ff91a68ed39f578af2
Alf Eaton 2 лет назад
Родитель
Сommit
bd2c3a61f3
1 измененных файлов с 7 добавлено и 1 удалено
  1. 7 1
      services/web/frontend/js/features/source-editor/extensions/track-changes.ts

+ 7 - 1
services/web/frontend/js/features/source-editor/extensions/track-changes.ts

@@ -346,9 +346,15 @@ const trackChangesTheme = EditorView.baseTheme({
     position: 'absolute',
     position: 'absolute',
     left: 0,
     left: 0,
     bottom: 0,
     bottom: 0,
-    width: '10000px',
+    width: '100vw',
     borderBottom: '1px dashed black',
     borderBottom: '1px dashed black',
   },
   },
+  // disable callout line in Firefox
+  '@supports (-moz-appearance:none)': {
+    '.ol-cm-change-callout-inner': {
+      display: 'none',
+    },
+  },
   '.ol-cm-change-callout-i .ol-cm-change-callout-inner': {
   '.ol-cm-change-callout-i .ol-cm-change-callout-inner': {
     borderColor: '#2c8e30',
     borderColor: '#2c8e30',
   },
   },