Skip to content

Commit 7641421

Browse files
fix(editor): line number overlapping #594 (#596)
Closes #594
1 parent c5dc66c commit 7641421

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/renderer/components/editor/Editor.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,10 @@ async function format() {
324324
325325
ipc.on('main-menu:format', format)
326326
327+
function onSplitterLayout() {
328+
editor?.refresh()
329+
}
330+
327331
onMounted(() => {
328332
init()
329333
})
@@ -339,8 +343,9 @@ onMounted(() => {
339343
v-show="isShowEditor"
340344
direction="vertical"
341345
class="overflow-auto"
346+
@layout="onSplitterLayout"
342347
>
343-
<SplitterPanel as-child>
348+
<SplitterPanel>
344349
<div
345350
id="editor"
346351
data-editor-mount

0 commit comments

Comments
 (0)