Skip to content

Commit 936eb6b

Browse files
author
sky.sun
committed
feat: 编辑器最大高度
1 parent a3c25c7 commit 936eb6b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/.vitepress/composables/useCodeEditor.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,8 @@ export function useCodeEditor(options: UseCodeEditorOptions = {}) {
225225
},
226226
'.cm-content': {
227227
padding: '16px',
228-
minHeight: '100px'
228+
minHeight: '100px',
229+
maxHeight: '600px'
229230
},
230231
'.cm-gutters': {
231232
display: 'none'

0 commit comments

Comments
 (0)