Merge pull request #371 from josephearl/358-save-bar-stuck

Fixes 358 Save bar stuck
This commit is contained in:
Benaiah Mischenko 2017-04-17 10:30:57 -07:00 committed by GitHub
commit aff120a6fe
2 changed files with 14 additions and 1 deletions

View File

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

View File

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