Explorar o código

:bug: https://github.com/siyuan-note/siyuan/issues/12794 第一点

Vanessa hai 9 meses
pai
achega
04b83a3bc6

+ 1 - 0
app/src/assets/template/app/window.tpl

@@ -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">

+ 1 - 3
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);
 };