소스 검색

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

Vanessa 9 달 전
부모
커밋
04b83a3bc6
2개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 0
      app/src/assets/template/app/window.tpl
  2. 1 3
      app/src/protyle/wysiwyg/commonHotkey.ts

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