soumaeda 2 лет назад
Родитель
Сommit
8a73c664c9

+ 2 - 8
packages/editor/src/components/CodeMirrorEditor/CodeMirrorEditor.module.scss

@@ -1,14 +1,8 @@
 .codemirror-editor-container :global {
 
   .cm-editor {
-    font-family: var(--font-family-monospace);
-    font-size: 15px;
-
-    .cm-line {
-      padding-top: 0.16em;
-      padding-bottom: 0.08em;
-      font-family: var(--font-family-monospace);
-    }
+    width: 100%;
+    height: 100%;
   }
 
 }

+ 6 - 6
packages/editor/src/services/codemirror-editor/use-codemirror-editor/use-codemirror-editor.ts

@@ -17,12 +17,12 @@ import { useInitDoc, type InitDoc } from './utils/init-doc';
 import { useSetCaretLine, type SetCaretLine } from './utils/set-caret-line';
 
 const markdownHighlighting = HighlightStyle.define([
-  { tag: tags.heading1, fontSize: '1.6em', fontWeight: 'bold' },
-  { tag: tags.heading2, fontSize: '1.4em', fontWeight: 'bold' },
-  { tag: tags.heading3, fontSize: '1.2em', fontWeight: 'bold' },
-  { tag: tags.heading4, fontSize: '1em', fontWeight: 'bold' },
-  { tag: tags.heading5, fontSize: '0.8em', fontWeight: 'bold' },
-  { tag: tags.heading6, fontSize: '0.6em', fontWeight: 'bold' },
+  { tag: tags.heading1, fontSize: '1.9em', fontWeight: 'bold' },
+  { tag: tags.heading2, fontSize: '1.6em', fontWeight: 'bold' },
+  { tag: tags.heading3, fontSize: '1.4em', fontWeight: 'bold' },
+  { tag: tags.heading4, fontSize: '1.35em', fontWeight: 'bold' },
+  { tag: tags.heading5, fontSize: '1.25em', fontWeight: 'bold' },
+  { tag: tags.heading6, fontSize: '1.2em', fontWeight: 'bold' },
 ]);
 
 type UseCodeMirrorEditorUtils = {