fix: auto height for code block

This commit is contained in:
Tienson Qin
2025-04-14 12:38:09 +08:00
parent 044f3eb80a
commit 6d430f6633
2 changed files with 1 additions and 1 deletions

View File

@@ -549,7 +549,6 @@
(fn [e]
(.stopPropagation e)))
(.save editor)
(.setSize editor "100%" 1024)
(.refresh editor)))
editor))

View File

@@ -40,6 +40,7 @@
.CodeMirror {
height: auto;
max-height: 1024px;
width: 100%;
font-family: Fira Code, Monaco, Menlo, Consolas, 'COURIER NEW', monospace;
border-radius: 2px;