This commit is contained in:
Vanessa 2023-01-13 16:16:11 +08:00
parent 292c195e9b
commit 32ab7b52af
2 changed files with 2 additions and 1 deletions

View file

@ -264,6 +264,7 @@ progressLoading: 400
}
&__text {
font-size: 12px;
max-width: 96px;
overflow: hidden;
text-overflow: ellipsis;

View file

@ -447,7 +447,7 @@ export const removeBlock = (protyle: IProtyle, blockElement: Element, range: Ran
if (editableElement && editableElement.textContent !== "") {
// 非空块
range.setEndAfter(editableElement.lastChild);
// 数学公式车后再删除 https://github.com/siyuan-note/siyuan/issues/3850
// 数学公式车后再删除 https://github.com/siyuan-note/siyuan/issues/3850
if ((previousLastEditElement?.lastElementChild?.getAttribute("data-type") || "").indexOf("inline-math") > -1) {
const lastSibling = hasNextSibling(previousLastEditElement?.lastElementChild);
if (lastSibling && lastSibling.textContent === "\n") {