From fe0445420fa85bc3073dda684f992c8872558fae Mon Sep 17 00:00:00 2001 From: Vanessa Date: Wed, 5 Jun 2024 10:43:45 +0800 Subject: [PATCH] :art: export pdf --- app/src/assets/scss/component/_typography.scss | 2 +- app/src/protyle/export/index.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/assets/scss/component/_typography.scss b/app/src/assets/scss/component/_typography.scss index c4a9e04d3..a33d90878 100644 --- a/app/src/assets/scss/component/_typography.scss +++ b/app/src/assets/scss/component/_typography.scss @@ -255,7 +255,7 @@ display: inline-block !important; position: absolute !important; width: 1px !important; - right: 7px !important; + right: 8px !important; outline: 0 !important; background: 0 0 !important; text-decoration: initial !important; diff --git a/app/src/protyle/export/index.ts b/app/src/protyle/export/index.ts index 03536811c..6c5e62f7c 100644 --- a/app/src/protyle/export/index.ts +++ b/app/src/protyle/export/index.ts @@ -315,6 +315,7 @@ const renderPDF = async (id: string) => { Protyle.highlightRender(previewElement, "${servePath}/stage/protyle"); previewElement.querySelectorAll('[data-type="NodeMathBlock"]').forEach((item) => { item.style.width = ""; + item.style.boxSizing = "border-box"; item.style.width = Math.min(item.clientWidth, width) + "px"; item.removeAttribute('data-render'); })