Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

fix: inconsistent database content in exported PDF (#3385)

xiaodong zuo1e38d3616158
diff --git a/apps/electron/src/main/export/pdf.ts b/apps/electron/src/main/export/pdf.ts
index ddb2fc661b..98f6b730f1 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 d9bed9c206..7591937f91 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',
+ },
+ },
},
});