소스 검색

:art: https://github.com/siyuan-note/siyuan/issues/11258

Vanessa 1 년 전
부모
커밋
84722c3d0d
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      app/src/protyle/export/index.ts

+ 1 - 0
app/src/protyle/export/index.ts

@@ -308,6 +308,7 @@ const renderPDF = async (id: string) => {
             // 强制换行 https://ld246.com/article/1679228783553
             // 强制换行 https://ld246.com/article/1679228783553
             item.parentElement.setAttribute("linewrap", "true");
             item.parentElement.setAttribute("linewrap", "true");
             item.parentElement.style.width = "";
             item.parentElement.style.width = "";
+            item.parentElement.style.boxSizing = "border-box";
             item.parentElement.style.width = Math.min(item.parentElement.clientWidth, width) + "px";
             item.parentElement.style.width = Math.min(item.parentElement.clientWidth, width) + "px";
             item.removeAttribute('data-render');
             item.removeAttribute('data-render');
         })
         })