Skip to content

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

:lipstick: Improve printing margins on mobile https://github.com/siyuan-note/siyuan/issues/16245

Danielcff77c864091
diff --git a/app/src/protyle/export/index.ts b/app/src/protyle/export/index.ts
index 481f4dca6f..63061fd6ab 100644
--- a/app/src/protyle/export/index.ts
+++ b/app/src/protyle/export/index.ts
@@ -707,8 +707,8 @@ export const onExport = async (data: IWebSocketData, filePath: string, servePath
const screenWidth = getScreenWidth();
const mobileHtml = isInAndroid() || isInHarmony() ? {
js: `document.body.style.minWidth = "${screenWidth}px";`,
- css: `@page { size: A4; }
-.protyle-wysiwyg {padding : 0}`
+ css: `@page { size: A4; margin: 10mm 0 10mm 0; }
+.protyle-wysiwyg {padding: 0; margin: 0;}`
} : {js: "", css: ""};
const html = `<!DOCTYPE html>
<html lang="${window.siyuan.config.appearance.lang}" data-theme-mode="${getThemeMode()}" data-light-theme="${window.siyuan.config.appearance.themeLight}" data-dark-theme="${window.siyuan.config.appearance.themeDark}">