Skip to content

Commit 8a62589

Browse files
author
Ives van Hoorne
committed
Fix line wrapping in editor
1 parent 4eabf5c commit 8a62589

File tree

1 file changed

+8
-6
lines changed
  • src/app/pages/Sandbox/Editor/Content

1 file changed

+8
-6
lines changed

src/app/pages/Sandbox/Editor/Content/index.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@ import { Prompt } from 'react-router-dom';
55
import { bindActionCreators } from 'redux';
66
import { connect } from 'react-redux';
77
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';
119
import { userSelector } from 'app/store/user/selectors';
1210
import moduleActionCreators from 'app/store/entities/sandboxes/modules/actions';
1311
import sandboxActionCreators from 'app/store/entities/sandboxes/actions';
@@ -26,7 +24,7 @@ import Header from './Header';
2624

2725
type 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

Comments
 (0)