@@ -5,9 +5,7 @@ import { Prompt } from 'react-router-dom';
5
5
import { bindActionCreators } from 'redux' ;
6
6
import { connect } from 'react-redux' ;
7
7
import { 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' ;
11
9
import { userSelector } from 'app/store/user/selectors' ;
12
10
import moduleActionCreators from 'app/store/entities/sandboxes/modules/actions' ;
13
11
import sandboxActionCreators from 'app/store/entities/sandboxes/actions' ;
@@ -26,7 +24,7 @@ import Header from './Header';
26
24
27
25
type Props = {
28
26
sandbox : Sandbox ,
29
- user : User ,
27
+ user : CurrentUser ,
30
28
preferences : Preferences ,
31
29
moduleActions : typeof moduleActionCreators ,
32
30
sandboxActions : typeof sandboxActionCreators ,
@@ -166,9 +164,13 @@ class EditorPreview extends React.PureComponent {
166
164
split = "vertical"
167
165
defaultSize = "50%"
168
166
minSize = { 360 }
169
- primary = "second"
170
167
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
+ } }
172
174
pane2Style = { {
173
175
display : sandbox . showPreview ? 'block' : 'none' ,
174
176
minWidth : sandbox . showPreview && ! sandbox . showEditor
0 commit comments