Skip to content
This repository was archived by the owner on Sep 9, 2024. It is now read-only.

Commit b3d7840

Browse files
committed
fix: min size for half editor size
1 parent 43690eb commit b3d7840

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/src/components/entry-editor/EditorInterface.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ const EditorInterface: FC<EditorInterfaceProps> = ({
429429
>
430430
<Panel
431431
defaultSize={editorSize === EDITOR_SIZE_COMPACT ? COMPACT_EDITOR_DEFAULT_WIDTH : 50}
432-
minSize={COMPACT_EDITOR_DEFAULT_WIDTH}
432+
minSize={editorSize === EDITOR_SIZE_COMPACT ? COMPACT_EDITOR_DEFAULT_WIDTH : 30}
433433
>
434434
<ScrollSyncPane>{editor}</ScrollSyncPane>
435435
</Panel>
@@ -438,7 +438,7 @@ const EditorInterface: FC<EditorInterfaceProps> = ({
438438
</PanelResizeHandle>
439439
<Panel
440440
defaultSize={editorSize === EDITOR_SIZE_COMPACT ? undefined : 50}
441-
minSize={MIN_PREVIEW_SIZE}
441+
minSize={editorSize === EDITOR_SIZE_COMPACT ? MIN_PREVIEW_SIZE : 30}
442442
>
443443
<EditorPreviewPane
444444
collection={collection}

0 commit comments

Comments
 (0)