From d9a8d7cb155dabe3c01caa5cb1256fc6ed863d45 Mon Sep 17 00:00:00 2001 From: Artur Rucinski <90777022+arturlg@users.noreply.github.com> Date: Tue, 20 Feb 2024 19:18:30 +0100 Subject: [PATCH] fix: Declaration receipt long publication url handling (#2143) --- .../api/core-domain/infra/pdf/templates/DeclarationReceipt.tsx | 3 ++- .../infra/pdf/templates/RepresentationEquilibreeReceipt.tsx | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/app/src/api/core-domain/infra/pdf/templates/DeclarationReceipt.tsx b/packages/app/src/api/core-domain/infra/pdf/templates/DeclarationReceipt.tsx index 21a2f5a41..ef9699ab0 100644 --- a/packages/app/src/api/core-domain/infra/pdf/templates/DeclarationReceipt.tsx +++ b/packages/app/src/api/core-domain/infra/pdf/templates/DeclarationReceipt.tsx @@ -341,7 +341,8 @@ export const DeclarationReceipt = (input: DeclarationOpmc) => { ? [ { key: "Site Internet de publication", - value: insertSoftHyphens(declaration.publication.url, 50), + value: insertSoftHyphens(declaration.publication.url, 70), + showAsBlock: true, }, ] : []), diff --git a/packages/app/src/api/core-domain/infra/pdf/templates/RepresentationEquilibreeReceipt.tsx b/packages/app/src/api/core-domain/infra/pdf/templates/RepresentationEquilibreeReceipt.tsx index 7f5dbe2c9..2ae98d11f 100644 --- a/packages/app/src/api/core-domain/infra/pdf/templates/RepresentationEquilibreeReceipt.tsx +++ b/packages/app/src/api/core-domain/infra/pdf/templates/RepresentationEquilibreeReceipt.tsx @@ -122,7 +122,8 @@ export const RepresentationEquilibreeReceipt = ({ repEq }: RepresentationEquilib repEq.publication.url ? { key: "Site Internet de publication", - value: insertSoftHyphens(repEq.publication.url, 50), + value: insertSoftHyphens(repEq.publication.url, 70), + showAsBlock: true, } : { key: "Modalités de communication auprès des salariés",