diff --git a/app/components/SimpleEditor/Editor.js b/app/components/SimpleEditor/Editor.js index 88a783a2638142e559ec2906462b37d67a69bce6..5af3e2e6fff9ccbbdb55d8bd51f343632105dc97 100644 --- a/app/components/SimpleEditor/Editor.js +++ b/app/components/SimpleEditor/Editor.js @@ -23,9 +23,6 @@ class Editor extends ProseEditor { super(parent, props) this.handleActions({ - 'showComments': function () { this.toggleCommentsArea(true) }, - 'hideComments': function () { this.toggleCommentsArea(false) }, - // TODO -- clean them up like changesNotSaved 'trackChangesUpdate': function () { this.updateTrackChange() }, 'trackChangesViewToggle': function () { this.trackChangesViewToggle() }, @@ -235,22 +232,6 @@ class Editor extends ProseEditor { this.extendState({ changesNotSaved: false }) } - toggleCommentsArea (show) { - var self = this - - setTimeout(function () { - var el = self.refs.contentPanel - - if (show && !el.hasClass('sc-has-comments')) { - el.addClass('sc-has-comments') - } - - if (!show && el.hasClass('sc-has-comments')) { - el.removeClass('sc-has-comments') - } - }) - } - getChildContext () { const oldContext = super.getChildContext() const doc = this.doc @@ -276,7 +257,6 @@ class Editor extends ProseEditor { notesProvider: notesProvider, fragment: this.props.fragment, surfaceManager: this.surfaceManager, - toggleCommentsArea: this.toggleCommentsArea, update: this.props.update }) diff --git a/app/components/SimpleEditor/SimpleEditor.scss b/app/components/SimpleEditor/SimpleEditor.scss index 0bfdb6bbec7695d4b1e20d277fc0e92f5d1129cb..ce130a6dcd2465c09d6ff0e46b901cb44930d900 100644 --- a/app/components/SimpleEditor/SimpleEditor.scss +++ b/app/components/SimpleEditor/SimpleEditor.scss @@ -263,7 +263,7 @@ $active-blue: #4a90e2; color: $transparent-black; font-family: 'Fira Sans'; line-height: 38px; - margin: 1.5% 17.8% 7%; + margin: 1.5% 23.6% 5% 12%; min-height: 100vh; padding: 3% 4% 1%; transition: .3s; @@ -314,13 +314,6 @@ $active-blue: #4a90e2; } } // end sc-content - .sc-has-comments { - div.se-content { - margin: 1.5% 23.6% 5% 12%; - transition: .3s; - } - } - .se-context-section { background-color: $ultra-light-gray; border-left: 1px solid $light-gray; diff --git a/app/components/SimpleEditor/miniEditor/miniEditor.js b/app/components/SimpleEditor/miniEditor/miniEditor.js index aefce9d7c70dab1e37c651cdd9d922626c5cc11c..788f1f1cdc727a0f16e8260c9cca85c71fa86c46 100644 --- a/app/components/SimpleEditor/miniEditor/miniEditor.js +++ b/app/components/SimpleEditor/miniEditor/miniEditor.js @@ -94,7 +94,6 @@ class MiniEditor extends ProseEditor { editorSession: this.editorSession, fragment: this.props.fragment, surfaceManager: this.surfaceManager, - toggleCommentsArea: this.toggleCommentsArea, update: this.props.update }) diff --git a/app/components/SimpleEditor/panes/Comments/CommentBoxList.js b/app/components/SimpleEditor/panes/Comments/CommentBoxList.js index 90f1ca8b7a4db6a04eb968d9c4a7f7dd38101671..d520a5d41a2e4a66d073321a358be8eb9c2b3c24 100644 --- a/app/components/SimpleEditor/panes/Comments/CommentBoxList.js +++ b/app/components/SimpleEditor/panes/Comments/CommentBoxList.js @@ -47,13 +47,6 @@ class CommentBoxList extends Component { }) }) - // toggle comments pane - if (listItems.length > 0) { - this.send('showComments') - } else { - this.send('hideComments') - } - return $$('ul') .addClass('sc-comment-pane-list') .append(listItems)