From 04b83a3bc6015b850878d9f8260698aaa21459a0 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Wed, 16 Oct 2024 21:43:11 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20https://github.com/siyuan-note/siyuan/i?= =?UTF-8?q?ssues/12794=20=E7=AC=AC=E4=B8=80=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/assets/template/app/window.tpl | 1 + app/src/protyle/wysiwyg/commonHotkey.ts | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/src/assets/template/app/window.tpl b/app/src/assets/template/app/window.tpl index 035aa3359..1b83eb91f 100644 --- a/app/src/assets/template/app/window.tpl +++ b/app/src/assets/template/app/window.tpl @@ -8,6 +8,7 @@ +
diff --git a/app/src/protyle/wysiwyg/commonHotkey.ts b/app/src/protyle/wysiwyg/commonHotkey.ts index f009cb9aa..cd8ce71be 100644 --- a/app/src/protyle/wysiwyg/commonHotkey.ts +++ b/app/src/protyle/wysiwyg/commonHotkey.ts @@ -320,9 +320,7 @@ export const alignImgCenter = (protyle: IProtyle, nodeElement: Element, assetEle export const alignImgLeft = (protyle: IProtyle, nodeElement: Element, assetElements: Element[], id: string, html: string) => { nodeElement.setAttribute("updated", dayjs().format("YYYYMMDDHHmmss")); assetElements.forEach((item: HTMLElement) => { - item.style.minWidth = ""; - // 兼容历史居中问题 - item.style.display = ""; + item.removeAttribute("style"); }); updateTransaction(protyle, id, nodeElement.outerHTML, html); };