From 84722c3d0d15958be17a2efe060d207212dc6fa4 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Wed, 5 Jun 2024 09:59:59 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/11258 --- app/src/protyle/export/index.ts | 1 + 1 file changed, 1 insertion(+) 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'); })