From c66c0cb96fa52612f6b4cdcb1dbce23302a4d5dd Mon Sep 17 00:00:00 2001 From: Gregory Schier Date: Mon, 11 Apr 2016 23:10:46 -0700 Subject: [PATCH] Minor tweaks --- app/components/base/Editor.js | 1 + app/components/base/PromptModal.js | 10 ++++++---- app/css/components/forms.scss | 3 ++- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/app/components/base/Editor.js b/app/components/base/Editor.js index 09a62256c..a750b9236 100644 --- a/app/components/base/Editor.js +++ b/app/components/base/Editor.js @@ -48,6 +48,7 @@ const BASE_CODEMIRROR_OPTIONS = { placeholder: 'Start Typing...', foldGutter: true, height: 'auto', + lineWrapping: false, gutters: [ 'CodeMirror-linenumbers', 'CodeMirror-foldgutter', diff --git a/app/components/base/PromptModal.js b/app/components/base/PromptModal.js index 3f557b6b1..7efcff3fb 100644 --- a/app/components/base/PromptModal.js +++ b/app/components/base/PromptModal.js @@ -15,7 +15,9 @@ class PromptModal extends Component { } this.refs.input.focus(); - this.refs.input.select(); + if (this.props.selectText) { + this.refs.input.select(); + } } componentDidMount () { @@ -32,8 +34,8 @@ class PromptModal extends Component { {headerName} -
-
+ +
@@ -52,9 +54,9 @@ class PromptModal extends Component { PromptModal.propTypes = { onSubmit: PropTypes.func.isRequired, headerName: PropTypes.string.isRequired, - defaultValue: PropTypes.string, submitName: PropTypes.string, + selectText: PropTypes.bool, onClose: PropTypes.func }; diff --git a/app/css/components/forms.scss b/app/css/components/forms.scss index 13a534163..72ff57339 100644 --- a/app/css/components/forms.scss +++ b/app/css/components/forms.scss @@ -55,7 +55,8 @@ } // Push form all the way to the sides if inside label -label > .form-control { +label > .form-control, +.form-control--wide { margin-left: 0 !important; margin-right: 0 !important; }