Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: export pdf

Vanessafe0445420fa8
diff --git a/app/src/assets/scss/component/_typography.scss b/app/src/assets/scss/component/_typography.scss
index c4a9e04d34..a33d908787 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 03536811c2..6c5e62f7ce 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');
})