Skip to content

Commit 48719f6

Browse files
authored
fix: sets a limit for editor minSize in editor split view (#6492)
1 parent 18e5839 commit 48719f6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/netlify-cms-core/src/components/Editor/EditorInterface.js

+1
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,7 @@ class EditorInterface extends Component {
279279
<ReactSplitPaneGlobalStyles />
280280
<StyledSplitPane
281281
maxSize={-100}
282+
minSize={400}
282283
defaultSize={parseInt(localStorage.getItem(SPLIT_PANE_POSITION), 10) || '50%'}
283284
onChange={size => localStorage.setItem(SPLIT_PANE_POSITION, size)}
284285
onDragStarted={this.handleSplitPaneDragStart}

0 commit comments

Comments
 (0)