diff --git a/src/components/EntryEditor/EntryEditor.css b/src/components/EntryEditor/EntryEditor.css index 0f2a5dbe..918c20ba 100644 --- a/src/components/EntryEditor/EntryEditor.css +++ b/src/components/EntryEditor/EntryEditor.css @@ -40,3 +40,10 @@ background: var(--backgroundColor); text-align: right; } + +.noPreviewEditorContainer { + position: absolute; + left: 0; + right: 0; + height: 100%; +} diff --git a/src/components/EntryEditor/EntryEditor.js b/src/components/EntryEditor/EntryEditor.js index 34e46641..f911698a 100644 --- a/src/components/EntryEditor/EntryEditor.js +++ b/src/components/EntryEditor/EntryEditor.js @@ -101,9 +101,15 @@ class EntryEditor extends Component { ); + const editorWithoutPreview = ( +
+ {editor} +
+ ); + return (
- { collectionPreviewEnabled && this.state.previewVisible ? editorWithPreview : editor } + { collectionPreviewEnabled && this.state.previewVisible ? editorWithPreview : editorWithoutPreview }