splitter between editors and preview hidden if preview is null (#182)

This commit is contained in:
Huyen Nguyen
2018-06-18 22:01:05 +07:00
committed by Mrugesh Mohapatra
parent 8de3a4c766
commit 10b3b747d6

View File

@ -228,7 +228,8 @@ class ShowClassic extends PureComponent {
<ReflexElement flex={1} {...this.resizeProps}>
{editors}
</ReflexElement>
<ReflexSplitter propagate={true} {...this.resizeProps} />
{showPreview &&
<ReflexSplitter propagate={true} {...this.resizeProps} />}
{showPreview ? (
<ReflexElement flex={0.7} {...this.resizeProps}>
<Preview