jam411 3 лет назад
Родитель
Сommit
a6ec2d838f

+ 7 - 1
packages/app/src/components/PageComment/CommentEditor.tsx

@@ -232,7 +232,13 @@ export const CommentEditor = (props: CommentEditorProps): JSX.Element => {
 
 
     const errorMessage = <span className="text-danger text-right mr-2">{error}</span>;
     const errorMessage = <span className="text-danger text-right mr-2">{error}</span>;
     const cancelButton = (
     const cancelButton = (
-      <Button outline color="danger" size="xs" className="btn btn-outline-danger rounded-pill" onClick={cancelButtonClickedHandler}>
+      <Button
+        outline
+        color="danger"
+        size="xs"
+        className="btn btn-outline-danger rounded-pill"
+        onClick={cancelButtonClickedHandler}
+      >
         Cancel
         Cancel
       </Button>
       </Button>
     );
     );

+ 5 - 0
packages/app/src/components/PageEditor/CodeMirrorEditor.module.scss

@@ -59,6 +59,11 @@
     pre.CodeMirror-line-like.CodeMirror-placeholder {
     pre.CodeMirror-line-like.CodeMirror-placeholder {
       color: bs.$text-muted;
       color: bs.$text-muted;
     }
     }
+
+    // overwrite .CodeMirror-scroll
+    .CodeMirror-scroll {
+      box-sizing: border-box;
+    }
   }
   }
 
 
   // patch to fix https://github.com/codemirror/CodeMirror/issues/4089
   // patch to fix https://github.com/codemirror/CodeMirror/issues/4089