Skip to content

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

:art: https://github.com/siyuan-note/siyuan/issues/14161

Vanessae7747b7c45a1
diff --git a/app/src/protyle/export/util.ts b/app/src/protyle/export/util.ts
index c3d2c02062..2306a25e67 100644
--- a/app/src/protyle/export/util.ts
+++ b/app/src/protyle/export/util.ts
@@ -62,15 +62,17 @@ export const exportImage = (id: string) => {
btnsElement[1].addEventListener("click", () => {
const msgId = showMessage(window.siyuan.languages.exporting, 0);
(exportDialog.element.querySelector(".b3-dialog__container") as HTMLElement).style.height = "";
+ const contentElement = exportDialog.element.querySelector(".b3-dialog__content") as HTMLElement;
+ contentElement.style.overflow = "hidden";
setStorageVal(Constants.LOCAL_EXPORTIMG, window.siyuan.storage[Constants.LOCAL_EXPORTIMG]);
setTimeout(() => {
addScript("/stage/protyle/js/html-to-image.min.js?v=1.11.13", "protyleHtml2image").then(async () => {
let blob = await window.htmlToImage.toBlob(exportDialog.element.querySelector(".b3-dialog__content"));
if (isIPhone() || isSafari()) {
- await window.htmlToImage.toBlob(exportDialog.element.querySelector(".b3-dialog__content"));
- await window.htmlToImage.toBlob(exportDialog.element.querySelector(".b3-dialog__content"));
- await window.htmlToImage.toBlob(exportDialog.element.querySelector(".b3-dialog__content"));
- blob = await window.htmlToImage.toBlob(exportDialog.element.querySelector(".b3-dialog__content"));
+ await window.htmlToImage.toBlob(contentElement);
+ await window.htmlToImage.toBlob(contentElement);
+ await window.htmlToImage.toBlob(contentElement);
+ blob = await window.htmlToImage.toBlob(contentElement);
}
const formData = new FormData();
formData.append("file", blob, btnsElement[1].getAttribute("data-title"));