@@ -5,9 +5,7 @@ import { Prompt } from 'react-router-dom';
55import { bindActionCreators } from 'redux' ;
66import { connect } from 'react-redux' ;
77import { preferencesSelector } from 'app/store/preferences/selectors' ;
8- import type { Preferences } from 'app/store/preferences/reducer' ;
9- import type { Sandbox } from 'app/store/entities/sandboxes/entity' ;
10- import type { User } from 'app/store/user/reducer' ;
8+ import type { Preferences , Sandbox , CurrentUser } from 'common/types' ;
119import { userSelector } from 'app/store/user/selectors' ;
1210import moduleActionCreators from 'app/store/entities/sandboxes/modules/actions' ;
1311import sandboxActionCreators from 'app/store/entities/sandboxes/actions' ;
@@ -26,7 +24,7 @@ import Header from './Header';
2624
2725type Props = {
2826 sandbox : Sandbox ,
29- user : User ,
27+ user : CurrentUser ,
3028 preferences : Preferences ,
3129 moduleActions : typeof moduleActionCreators ,
3230 sandboxActions : typeof sandboxActionCreators ,
@@ -166,9 +164,13 @@ class EditorPreview extends React.PureComponent {
166164 split = "vertical"
167165 defaultSize = "50%"
168166 minSize = { 360 }
169- primary = "second"
170167 paneStyle = { { height : '100%' } }
171- pane1Style = { { display : sandbox . showEditor ? 'block' : 'none' } }
168+ pane1Style = { {
169+ display : sandbox . showEditor ? 'block' : 'none' ,
170+ minWidth : ! sandbox . showPreview && sandbox . showEditor
171+ ? '100%'
172+ : 'inherit' ,
173+ } }
172174 pane2Style = { {
173175 display : sandbox . showPreview ? 'block' : 'none' ,
174176 minWidth : sandbox . showPreview && ! sandbox . showEditor
0 commit comments