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

Commit

Permalink
fix: min size for half editor size
Browse files Browse the repository at this point in the history
  • Loading branch information
KaneFreeman committed Nov 16, 2023
1 parent 43690eb commit b3d7840
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/components/entry-editor/EditorInterface.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ const EditorInterface: FC<EditorInterfaceProps> = ({
>
<Panel
defaultSize={editorSize === EDITOR_SIZE_COMPACT ? COMPACT_EDITOR_DEFAULT_WIDTH : 50}
minSize={COMPACT_EDITOR_DEFAULT_WIDTH}
minSize={editorSize === EDITOR_SIZE_COMPACT ? COMPACT_EDITOR_DEFAULT_WIDTH : 30}
>
<ScrollSyncPane>{editor}</ScrollSyncPane>
</Panel>
Expand All @@ -438,7 +438,7 @@ const EditorInterface: FC<EditorInterfaceProps> = ({
</PanelResizeHandle>
<Panel
defaultSize={editorSize === EDITOR_SIZE_COMPACT ? undefined : 50}
minSize={MIN_PREVIEW_SIZE}
minSize={editorSize === EDITOR_SIZE_COMPACT ? MIN_PREVIEW_SIZE : 30}
>
<EditorPreviewPane
collection={collection}
Expand Down

0 comments on commit b3d7840

Please sign in to comment.