From cc724512298744dac8e7430428a7496a3093af01 Mon Sep 17 00:00:00 2001 From: Rodri Sanchez Date: Tue, 26 Dec 2023 19:16:25 -0300 Subject: [PATCH 1/2] Revert "Fix the order of params on pdfExportAdapter" This reverts commit 0f17855133880854815fa62ffee89c62d1674602. --- src/components/Settings/Export/Export.helpers.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Settings/Export/Export.helpers.js b/src/components/Settings/Export/Export.helpers.js index 515e7cd4f..02b17e4f6 100644 --- a/src/components/Settings/Export/Export.helpers.js +++ b/src/components/Settings/Export/Export.helpers.js @@ -890,9 +890,9 @@ export async function cboardExportAdapter(allBoards = [], board) { export async function pdfExportAdapter( boards = [], + labelFontSize, intl, - picsee = false, - labelFontSize + picsee = false ) { const font = definePDFfont(intl); const docDefinition = { From 8d76945b71ba8de53b9ea5e45024fe7e9451c8ab Mon Sep 17 00:00:00 2001 From: Rodri Sanchez Date: Tue, 26 Dec 2023 19:25:02 -0300 Subject: [PATCH 2/2] Add medium font size for pdf export in PrintBoardButton --- .../UI/PrintBoardButton/PrintBoardButton.container.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/UI/PrintBoardButton/PrintBoardButton.container.js b/src/components/UI/PrintBoardButton/PrintBoardButton.container.js index affc60b16..b9e64bbbe 100644 --- a/src/components/UI/PrintBoardButton/PrintBoardButton.container.js +++ b/src/components/UI/PrintBoardButton/PrintBoardButton.container.js @@ -6,6 +6,7 @@ import PrintBoardButton from './PrintBoardButton.component'; import PrintBoardDialog from './PrintBoardDialog.component'; import messages from './PrintBoardButton.messages'; import { showNotification } from '../../Notifications/Notifications.actions'; +import { MEDIUM_FONT_SIZE } from '../../Settings/Export/Export.constants'; class PrintBoardButtonContainer extends React.Component { constructor(props) { @@ -37,7 +38,7 @@ class PrintBoardButtonContainer extends React.Component { ); const { pdfExportAdapter } = await this.exportHelpers; - pdfExportAdapter([currentBoard], intl).then(() => { + pdfExportAdapter([currentBoard], MEDIUM_FONT_SIZE, intl).then(() => { this.setState({ loading: false }); showNotification(intl.formatMessage(messages.boardDownloaded)); });