fix: Move references spacing directly below content (#1113)

* fix: Move references spacing directly below content

* Child document -> Nested document
This commit is contained in:
Tom Moor
2019-12-18 21:00:36 -08:00
committed by GitHub
parent 949dd296b4
commit 293c3b7b9c
9 changed files with 33 additions and 12 deletions

View File

@@ -34,12 +34,10 @@ class DocumentEditor extends React.Component<Props> {
<Editor
ref={ref => (this.editor = ref)}
plugins={plugins}
grow={!readOnly}
{...this.props}
/>
<ClickablePadding
onClick={!readOnly ? this.focusAtEnd : undefined}
grow
/>
{!readOnly && <ClickablePadding onClick={this.focusAtEnd} grow />}
</React.Fragment>
);
}