diff options
author | geireann <60007097+geireann@users.noreply.github.com> | 2020-06-16 23:53:16 +0800 |
---|---|---|
committer | geireann <60007097+geireann@users.noreply.github.com> | 2020-06-16 23:53:16 +0800 |
commit | 4b1dc65c9e0bb917c1f1f780f8a63fc0c91b4ad6 (patch) | |
tree | c18ea9f31fb2dbd1f02800742f7857686411ea8e /src/client/views/nodes/formattedText/FormattedTextBox.tsx | |
parent | 099a1942440efc2784bc9b2c5896777cf85842ec (diff) |
mobile menu bug fixes + doc button fix
Diffstat (limited to 'src/client/views/nodes/formattedText/FormattedTextBox.tsx')
-rw-r--r-- | src/client/views/nodes/formattedText/FormattedTextBox.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/nodes/formattedText/FormattedTextBox.tsx b/src/client/views/nodes/formattedText/FormattedTextBox.tsx index 1db50a5cc..912bafc46 100644 --- a/src/client/views/nodes/formattedText/FormattedTextBox.tsx +++ b/src/client/views/nodes/formattedText/FormattedTextBox.tsx @@ -262,7 +262,8 @@ export class FormattedTextBox extends ViewBoxAnnotatableComponent<(FieldViewProp } public unhighlightSearchTerms = () => { - if (this._editorView && (this._editorView as any).docView) { + if (window.innerWidth < 1000) null; + else if (this._editorView && (this._editorView as any).docView) { const mark = this._editorView.state.schema.mark(this._editorView.state.schema.marks.search_highlight); const activeMark = this._editorView.state.schema.mark(this._editorView.state.schema.marks.search_highlight, { selected: true }); const end = this._editorView.state.doc.nodeSize - 2; |