fix: 修复代码编辑器高度设置错误导致显示异常

将编辑器高度从 'auto' 改为 '0' 以正确触发 flex 布局计算,避免在某些情况下编辑器区域高度异常膨胀的问题。
This commit is contained in:
cfq 2026-01-26 18:49:29 +08:00
parent c4b9aaaaca
commit d774524881
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@
<codemirror <codemirror
v-model="code" v-model="code"
placeholder="请输入 Markdown 内容..." placeholder="请输入 Markdown 内容..."
:style="{ height: 'auto', flex: 1, fontSize: 'var(--editor-font-size)' }" :style="{ height: '0', flex: 1, fontSize: 'var(--editor-font-size)' }"
:autofocus="true" :autofocus="true"
:indent-with-tab="true" :indent-with-tab="true"
:tab-size="2" :tab-size="2"