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); };