diff --git a/client/template.js b/client/template.js index cab4790b9..e8ac8e22f 100644 --- a/client/template.js +++ b/client/template.js @@ -11,6 +11,7 @@ const template = async function(name, title='', props = {}){ return ` + diff --git a/shared/naturalcrit/codeEditor/codeEditor.less b/shared/naturalcrit/codeEditor/codeEditor.less index 1334299e4..80af543d9 100644 --- a/shared/naturalcrit/codeEditor/codeEditor.less +++ b/shared/naturalcrit/codeEditor/codeEditor.less @@ -9,6 +9,9 @@ } .codeEditor{ + @media screen and (pointer : coarse) { + font-size : 16px; + } .CodeMirror-foldmarker { font-family: inherit; text-shadow: none; diff --git a/shared/naturalcrit/splitPane/splitPane.jsx b/shared/naturalcrit/splitPane/splitPane.jsx index 38f84b220..c4cd207c2 100644 --- a/shared/naturalcrit/splitPane/splitPane.jsx +++ b/shared/naturalcrit/splitPane/splitPane.jsx @@ -61,7 +61,8 @@ const SplitPane = createClass({ return result; }, - handleUp : function(){ + handleUp : function(e){ + e.preventDefault(); if(this.state.isDragging){ this.props.onDragFinish(this.state.currentDividerPos); window.localStorage.setItem(this.props.storageKey, this.state.currentDividerPos); @@ -76,6 +77,7 @@ const SplitPane = createClass({ }, handleMove : function(e){ + e.preventDefault(); if(!this.state.isDragging) return; const newSize = this.limitPosition(e.pageX); @@ -122,7 +124,7 @@ const SplitPane = createClass({ renderDivider : function(){ return <> {this.renderMoveArrows()} -
+
@@ -133,7 +135,7 @@ const SplitPane = createClass({ }, render : function(){ - return
+ return