Skip to content

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

:art: fix https://github.com/siyuan-note/siyuan/issues/7338

Vanessabe10050b7f22
diff --git a/app/src/protyle/export/util.ts b/app/src/protyle/export/util.ts
index 1a9bfb4bbd..9e575dd032 100644
--- a/app/src/protyle/export/util.ts
+++ b/app/src/protyle/export/util.ts
@@ -96,8 +96,8 @@ export const exportImage = (id: string) => {
highlightRender(previewElement);
previewElement.querySelectorAll("table").forEach((item: HTMLElement) => {
if (item.clientWidth > item.parentElement.clientWidth) {
- // @ts-ignore
- item.style.zoom = item.parentElement.clientWidth / item.clientWidth;
+ item.setAttribute("style", `transform: scale(${item.parentElement.clientWidth / item.clientWidth});transform-origin: top left;`);
+ item.parentElement.style.overflow = "hidden";
}
});
previewElement.querySelectorAll(".li > .protyle-action > svg").forEach(item => {