From b787de9024b0014c264942c5385277995b1554a5 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Mon, 29 May 2023 19:04:27 +0800 Subject: [PATCH] :art: fix https://github.com/siyuan-note/siyuan/issues/8392 --- app/appearance/langs/zh_CN.json | 2 +- app/src/protyle/toolbar/Font.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/appearance/langs/zh_CN.json b/app/appearance/langs/zh_CN.json index a134eefb1..bc9d93579 100644 --- a/app/appearance/langs/zh_CN.json +++ b/app/appearance/langs/zh_CN.json @@ -264,7 +264,7 @@ "importDataTip": "将导出的 zip 压缩包导入,按路径覆盖 工作空间/data/ 文件夹", "includeChildDoc": "包含子文档", "text": "文本", - "lastUsed": "最近使用过的外观", + "lastUsed": "Recently used appearance", "removedNotebook": "已删除的笔记本", "querySyntax": "查询语法", "rollback": "回滚", diff --git a/app/src/protyle/toolbar/Font.ts b/app/src/protyle/toolbar/Font.ts index e7847ef16..17b9c5fe9 100644 --- a/app/src/protyle/toolbar/Font.ts +++ b/app/src/protyle/toolbar/Font.ts @@ -82,7 +82,7 @@ export const appearanceMenu = (protyle: IProtyle, nodeElements?: Element[]) => { lastColorHTML += ``; break; case "fontSize": - lastColorHTML += ``; + lastColorHTML += ``; break; case "style1": lastColorHTML += ``; @@ -167,7 +167,7 @@ export const appearanceMenu = (protyle: IProtyle, nodeElements?: Element[]) => { if (dataType === "style1") { fontEvent(protyle, nodeElements, dataType, target.style.backgroundColor + Constants.ZWSP + target.style.color); } else if (dataType === "fontSize") { - fontEvent(protyle, nodeElements, dataType, target.style.fontSize); + fontEvent(protyle, nodeElements, dataType, target.textContent.trim()); } else if (dataType === "backgroundColor") { fontEvent(protyle, nodeElements, dataType, target.style.backgroundColor); } else if (dataType === "color") {