fix: inconsistent database content in exported PDF (#3385)
This commit is contained in:
@@ -29,6 +29,7 @@ export async function savePDFFileAs(
|
|||||||
buttonLabel: 'Save',
|
buttonLabel: 'Save',
|
||||||
defaultPath: `${pageTitle}.pdf`,
|
defaultPath: `${pageTitle}.pdf`,
|
||||||
message: 'Save Page as a PDF file',
|
message: 'Save Page as a PDF file',
|
||||||
|
filters: [{ name: 'PDF Files', extensions: ['pdf'] }],
|
||||||
}));
|
}));
|
||||||
const filePath = ret.filePath;
|
const filePath = ret.filePath;
|
||||||
if (ret.canceled || !filePath) {
|
if (ret.canceled || !filePath) {
|
||||||
|
|||||||
@@ -35,6 +35,11 @@ export const appStyle = style({
|
|||||||
'--affine-editor-width': '550px',
|
'--affine-editor-width': '550px',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
print: {
|
||||||
|
vars: {
|
||||||
|
'--affine-editor-width': '800px',
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user