mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 14:40:12 +01:00
💄 Improve printing margins on mobile https://github.com/siyuan-note/siyuan/issues/16245
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
61a2dbca0c
commit
cff77c8640
1 changed files with 2 additions and 2 deletions
|
|
@ -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}">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue