--- a/client/src/components/NoteInput.js Mon Oct 08 03:30:54 2018 +0200
+++ b/client/src/components/NoteInput.js Mon Oct 08 04:09:19 2018 +0200
@@ -2,7 +2,7 @@
import PropTypes from 'prop-types';
import SlateEditor from './SlateEditor';
import { now } from '../utils';
-
+import './NoteInput.css';
class NoteInput extends Component {
@@ -35,9 +35,11 @@
startedAt: this.state.startedAt,
finishedAt: now(),
categories: categories,
+
// marginComment: marginComment,
});
+
this.refs.editor.clear();
setTimeout(() => this.refs.editor.focus(), 250);
}
@@ -54,8 +56,8 @@
render() {
return (
<form>
- <div className="editor p-3 mb-3">
- <div className="editor-left w-100 border-0 pl-3 pb-3 sticky-bottom">
+ <div className="editor mb-3">
+ <div className="editor-left sticky-bottom px-2">
<SlateEditor ref="editor"
onChange={this.onEditorChange}
onEnterKeyDown={this.onAddNoteClick}