Skip to content

Commit 62b49f1

Browse files
SaraVieiraCompuIves
authored andcommitted
add min width 100 to both panes (codesandbox#1682)
1 parent 343b7ae commit 62b49f1

File tree

1 file changed

+4
-1
lines changed
  • packages/app/src/app/pages/Sandbox/Editor/Content

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,7 @@ class EditorPreview extends React.Component<Props, State> {
515515
}
516516
/>
517517
<SplitPane
518+
maxSize={-100}
518519
onDragFinished={() => {
519520
this.props.signals.editor.resizingStopped();
520521
}}
@@ -533,7 +534,9 @@ class EditorPreview extends React.Component<Props, State> {
533534
defaultSize={'50%'}
534535
pane1Style={
535536
windowVisible
536-
? {}
537+
? {
538+
minWidth: 100,
539+
}
537540
: {
538541
width: '100%',
539542
minWidth: '100%',

0 commit comments

Comments
 (0)