fix: 修复代码编辑器高度设置错误导致显示异常
将编辑器高度从 'auto' 改为 '0' 以正确触发 flex 布局计算,避免在某些情况下编辑器区域高度异常膨胀的问题。
This commit is contained in:
parent
c4b9aaaaca
commit
d774524881
|
|
@ -4,7 +4,7 @@
|
|||
<codemirror
|
||||
v-model="code"
|
||||
placeholder="请输入 Markdown 内容..."
|
||||
:style="{ height: 'auto', flex: 1, fontSize: 'var(--editor-font-size)' }"
|
||||
:style="{ height: '0', flex: 1, fontSize: 'var(--editor-font-size)' }"
|
||||
:autofocus="true"
|
||||
:indent-with-tab="true"
|
||||
:tab-size="2"
|
||||
|
|
|
|||
Loading…
Reference in New Issue