From f580263844ca215e874ad8b5a67ce500deb51476 Mon Sep 17 00:00:00 2001 From: undefined Date: Wed, 4 May 2022 00:09:55 +0800 Subject: [PATCH] ui: editor: better layout --- packages/ui-default/components/editor/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/ui-default/components/editor/index.ts b/packages/ui-default/components/editor/index.ts index ef16cec97..729b9753c 100644 --- a/packages/ui-default/components/editor/index.ts +++ b/packages/ui-default/components/editor/index.ts @@ -37,8 +37,8 @@ export default class VjEditor extends DOMAttachedObject { super($dom); $dom.hide(); const root = $('
'); - const left = $('
'); - const right = $('
'); + const left = $('
'); + const right = $('
'); root.append(left, right); $($dom).parent().append(root); this.initMonaco(left.get(0)); @@ -241,7 +241,7 @@ export default class VjEditor extends DOMAttachedObject { view?.destroy(); }; await this.milkdown.create(); - $('.editor-root').prepend($('
')); + $('.editor-root').prepend($('
')); $('.editor-menu').prepend($('.milkdown-menu')); this.isValid = true; }