An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: Use paper width for mobile printing https://github.com/siyuan-note/siyuan/issues/19972
Daniel704d9fde6d01
diff --git a/app/src/protyle/export/index.ts b/app/src/protyle/export/index.tsindex d14fe1dd3e..6c57faa745 100644--- a/app/src/protyle/export/index.ts+++ b/app/src/protyle/export/index.ts@@ -1119,10 +1119,9 @@ export const onExport = async (data: IWebSocketData, filePath: string, servePathif (!isDefault) {themeStyle = `<link rel="stylesheet" type="text/css" id="themeStyle" href="${servePath}appearance/themes/${themeName}/theme.css?${Constants.SIYUAN_VERSION}"/>`;}- const screenWidth = getScreenWidth();const isInMobile = isInMobileApp();const mobileHtml = isInMobile ? {- js: `document.body.style.minWidth = "${screenWidth}px";`,+ js: exportOption.type === "pdf" ? "" : `document.body.style.minWidth = "${getScreenWidth()}px";`,css: `@page { size: A4; margin: 10mm 0 10mm 0; background-color: var(--b3-theme-background); }.protyle-wysiwyg {padding: 0; margin: 0;}`} : {js: "", css: ""};