Skip to content

Commit 5e91b74

Browse files
committed
fix(editor): show code preview panel
1 parent e1d4ccd commit 5e91b74

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

src/renderer/components/editor/Editor.vue

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -432,12 +432,14 @@ onMounted(() => {
432432
data-editor-mount
433433
/>
434434
</SplitterPanel>
435-
<SplitterResizeHandle class="relative cursor-none">
436-
<UiGutter orientation="horizontal" />
437-
</SplitterResizeHandle>
438-
<SplitterPanel v-if="isShowCodePreview">
439-
<EditorPreview />
440-
</SplitterPanel>
435+
<template v-if="isShowCodePreview">
436+
<SplitterResizeHandle class="relative cursor-none">
437+
<UiGutter orientation="horizontal" />
438+
</SplitterResizeHandle>
439+
<SplitterPanel>
440+
<EditorPreview />
441+
</SplitterPanel>
442+
</template>
441443
</SplitterGroup>
442444
<EditorMarkdown v-if="isShowMarkdown" />
443445
<EditorFooter v-if="isShowEditor" />

0 commit comments

Comments
 (0)