mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-24 02:20:13 +01:00
This commit is contained in:
parent
d52f835b31
commit
61e3111847
1 changed files with 1 additions and 1 deletions
|
|
@ -720,7 +720,7 @@ export const onExport = async (data: IWebSocketData, filePath: string, servePath
|
||||||
const isInMobile = isInAndroid() || isInHarmony() || isInIOS();
|
const isInMobile = isInAndroid() || isInHarmony() || isInIOS();
|
||||||
const mobileHtml = isInMobile ? {
|
const mobileHtml = isInMobile ? {
|
||||||
js: `document.body.style.minWidth = "${screenWidth}px";`,
|
js: `document.body.style.minWidth = "${screenWidth}px";`,
|
||||||
css: `@page { size: A4; margin: 10mm 0 10mm 0; }
|
css: `@page { size: A4; margin: 10mm 0 10mm 0; background-color: var(--b3-theme-background); }
|
||||||
.protyle-wysiwyg {padding: 0; margin: 0;}`
|
.protyle-wysiwyg {padding: 0; margin: 0;}`
|
||||||
} : {js: "", css: ""};
|
} : {js: "", css: ""};
|
||||||
const html = `<!DOCTYPE html>
|
const html = `<!DOCTYPE html>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue