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