This commit is contained in:
Vanessa 2024-10-16 21:43:11 +08:00
parent fd15a31026
commit 04b83a3bc6
2 changed files with 2 additions and 3 deletions

View file

@ -8,6 +8,7 @@
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<link rel="apple-touch-icon" href="../../icon.png">
<style id="editorAttr" type="text/css"></style>
<script src="../../protyle/js/pdf/pdf.min.mjs?v=4.7.85" type="module"></script>
</head>
<body class="fn__flex-column body--window">
<div class="fn__flex-1 fn__flex">

View file

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