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

Merge pull request #14707 from overleaf/mj-table-gen-toolbar-z-index

[visual] Set higher z-index for table gen toolbar than cm6 cursor

GitOrigin-RevId: 769e33abf84767087b7936f2b3f0a02c80c7dd09
Mathias Jakobsen 3 лет назад
Родитель
Сommit
c5cb344178

+ 2 - 1
services/web/frontend/js/features/source-editor/extensions/visual/table-generator.ts

@@ -196,7 +196,8 @@ export const tableGeneratorTheme = EditorView.baseTheme({
     left: '0',
     left: '0',
     right: '0',
     right: '0',
     margin: '0 auto',
     margin: '0 auto',
-    'z-index': '1',
+    // z-index of cursor layer is 150
+    'z-index': '152',
     'border-radius': '4px',
     'border-radius': '4px',
     width: 'max-content',
     width: 'max-content',
     'justify-content': 'start',
     'justify-content': 'start',