From cff77c864091dbef38a7f131823c631f74a19ebf Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Tue, 11 Nov 2025 16:47:00 +0800 Subject: [PATCH] :lipstick: Improve printing margins on mobile https://github.com/siyuan-note/siyuan/issues/16245 Signed-off-by: Daniel <845765@qq.com> --- app/src/protyle/export/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/protyle/export/index.ts b/app/src/protyle/export/index.ts index 481f4dca6..63061fd6a 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 = `