fixes #715 in an extremely hacky way 🤷♀️, fixes another error in which when changing the font size, linting highlighting was misaligned
This commit is contained in:
parent
19bffe58cf
commit
d15e5d0da5
2 changed files with 5 additions and 2 deletions
|
@ -103,6 +103,8 @@ class Editor extends React.Component {
|
|||
}
|
||||
});
|
||||
|
||||
delete this._cm.options.lint.options.errors;
|
||||
|
||||
this._cm.setOption('extraKeys', {
|
||||
[`${metaKey}-Enter`]: () => null,
|
||||
[`Shift-${metaKey}-Enter`]: () => null,
|
||||
|
|
|
@ -35,7 +35,7 @@ pre.CodeMirror-line {
|
|||
|
||||
.CodeMirror-lint-marker-warning, .CodeMirror-lint-marker-error, .CodeMirror-lint-marker-multiple {
|
||||
background-image: none;
|
||||
width: #{48 / $base-font-size}rem;
|
||||
width: #{49 / $base-font-size}rem;
|
||||
position: absolute;
|
||||
height: 100%;
|
||||
right: 100%;
|
||||
|
@ -56,8 +56,9 @@ pre.CodeMirror-line {
|
|||
|
||||
.CodeMirror-gutter-elt:not(.CodeMirror-linenumber) {
|
||||
opacity: 0.3;
|
||||
width: #{48 / $base-font-size}rem !important;
|
||||
width: #{49 / $base-font-size}rem !important;
|
||||
height: 100%;
|
||||
left: 49px !important;
|
||||
// background-color: rgb(255, 95, 82);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue