Fixes 358 Save bar stuck

This commit is contained in:
Joseph Earl 2017-04-14 21:30:49 +01:00
parent 2f6deee25b
commit 684fd1c490
2 changed files with 14 additions and 1 deletions

View File

@ -40,3 +40,10 @@
background: var(--backgroundColor);
text-align: right;
}
.noPreviewEditorContainer {
position: absolute;
left: 0;
right: 0;
height: 100%;
}

View File

@ -101,9 +101,15 @@ class EntryEditor extends Component {
</ScrollSync>
);
const editorWithoutPreview = (
<div className={styles.noPreviewEditorContainer}>
{editor}
</div>
);
return (
<div className={styles.root}>
{ collectionPreviewEnabled && this.state.previewVisible ? editorWithPreview : editor }
{ collectionPreviewEnabled && this.state.previewVisible ? editorWithPreview : editorWithoutPreview }
<div className={styles.footer}>
<Toolbar
isPersisting={entry.get('isPersisting')}