Skip to content

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

:zap: https://github.com/siyuan-note/siyuan/issues/5875

Vanessa7cea6ef93d8b
diff --git a/app/src/protyle/export/index.ts b/app/src/protyle/export/index.ts
index bf2f682beb..90f1618ae9 100644
--- a/app/src/protyle/export/index.ts
+++ b/app/src/protyle/export/index.ts
@@ -239,10 +239,9 @@ const renderPDF = (id: string) => {
right: 232px;
left: 0;
}
-
- ::-webkit-scrollbar {
- width: 0px;
- height: 0px;
+ body.exporting::-webkit-scrollbar {
+ width: 0;
+ height: 0;
}
pre code {
max-height: none !important;
@@ -366,7 +365,7 @@ const renderPDF = (id: string) => {
return;
}
} else if (target.classList.contains("protyle-action__copy")) {
- navigator.clipboard.writeText(item.parentElement.nextElementSibling.textContent.trimEnd());
+ navigator.clipboard.writeText(target.parentElement.nextElementSibling.textContent.trimEnd());
event.preventDefault();
event.stopPropagation();
break;
@@ -391,9 +390,10 @@ const renderPDF = (id: string) => {
},
removeAssets: actionElement.querySelector("#removeAssets").checked,
rootId: "${id}",
- rootTitle: "{tpl.data.name}"
+ rootTitle: "{tpl.name}"
})
actionElement.remove();
+ document.querySelector("body").classList.add("exporting");
});
</script></body></html>`;
fetchPost("/api/export/exportPreviewHTML", {