diff --git a/apps/electron/src/main/export/pdf.ts b/apps/electron/src/main/export/pdf.ts index ddb2fc661..98f6b730f 100644 --- a/apps/electron/src/main/export/pdf.ts +++ b/apps/electron/src/main/export/pdf.ts @@ -29,6 +29,7 @@ export async function savePDFFileAs( buttonLabel: 'Save', defaultPath: `${pageTitle}.pdf`, message: 'Save Page as a PDF file', + filters: [{ name: 'PDF Files', extensions: ['pdf'] }], })); const filePath = ret.filePath; if (ret.canceled || !filePath) { diff --git a/packages/component/src/components/workspace/index.css.ts b/packages/component/src/components/workspace/index.css.ts index d9bed9c20..7591937f9 100644 --- a/packages/component/src/components/workspace/index.css.ts +++ b/packages/component/src/components/workspace/index.css.ts @@ -35,6 +35,11 @@ export const appStyle = style({ '--affine-editor-width': '550px', }, }, + print: { + vars: { + '--affine-editor-width': '800px', + }, + }, }, });