diff --git a/app/src/protyle/export/index.ts b/app/src/protyle/export/index.ts index 71fe24372..03536811c 100644 --- a/app/src/protyle/export/index.ts +++ b/app/src/protyle/export/index.ts @@ -308,6 +308,7 @@ const renderPDF = async (id: string) => { // 强制换行 https://ld246.com/article/1679228783553 item.parentElement.setAttribute("linewrap", "true"); item.parentElement.style.width = ""; + item.parentElement.style.boxSizing = "border-box"; item.parentElement.style.width = Math.min(item.parentElement.clientWidth, width) + "px"; item.removeAttribute('data-render'); })