Merge pull request #371 from josephearl/358-save-bar-stuck
Fixes 358 Save bar stuck
This commit is contained in:
commit
aff120a6fe
@ -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%;
|
||||||
|
}
|
||||||
|
@ -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')}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user