fix: math mode brackets render incorrectly

fixes https://github.com/logseq/db-test/issues/447
This commit is contained in:
Tienson Qin
2025-08-30 13:03:07 +08:00
parent 4c2428f858
commit b0ddf838e5
2 changed files with 13 additions and 1 deletions

View File

@@ -2500,7 +2500,8 @@
;; TODO: switched to https://cortexjs.io/mathlive/ for editing
(= :math node-display-type)
(latex/latex (:block/title block) true false)
[:div.math-block
(latex/latex (:block/title block) true true)]
(seq (:logseq.property/_query block'))
(query-builder-component/builder block' {})

View File

@@ -1044,6 +1044,17 @@ html.is-mac {
height: 18px;
}
.katex svg {
width: initial;
height: initial;
}
.math-block {
@apply w-full;
.latex {
@apply w-full;
}
}
.ls-small-icon svg {
width: 12px;
height: 12px;