diff --git a/client/src/app/core/ui-services/pdf-document.service.ts b/client/src/app/core/ui-services/pdf-document.service.ts index fe3449d11..24c9c6087 100644 --- a/client/src/app/core/ui-services/pdf-document.service.ts +++ b/client/src/app/core/ui-services/pdf-document.service.ts @@ -356,18 +356,22 @@ export class PdfDocumentService { const logoFooterLeftUrl = this.configService.instant('logo_pdf_footer_L').path; const logoFooterRightUrl = this.configService.instant('logo_pdf_footer_R').path; - let footerText = ''; + let footerPageNumber = ''; if (showPage) { - footerText += `${currentPage} / ${pageCount}`; + footerPageNumber += `${currentPage} / ${pageCount}`; if (showDate) { - footerText += '\n'; + footerPageNumber += '\n'; } } + let footerDate = {}; if (showDate) { - footerText += `${this.translate.instant('As of')}: ${new Date().toLocaleDateString( - this.translate.currentLang - )}`; + footerDate = { + text: `${this.translate.instant('As of')}: ${new Date().toLocaleDateString( + this.translate.currentLang + )}`, + fontSize: 6 + }; } // if there is a single logo, give it a lot of space @@ -402,7 +406,7 @@ export class PdfDocumentService { // add the page number columns.push({ - text: footerText, + text: [footerPageNumber, footerDate], style: 'footerPageNumber', alignment: pageNumberPosition }); @@ -501,7 +505,7 @@ export class PdfDocumentService { margin: [0, 10, 0, 0] }, footerPageNumber: { - fontSize: 9, + fontSize: 8, margin: [0, 15, 0, 0], color: '#555' }, @@ -540,8 +544,7 @@ export class PdfDocumentService { bold: false }, tocHeaderRow: { - fontSize: 8, - italics: true + fontSize: 7 }, tocSubEntry: { fontSize: pageSize === 'A5' ? 9 : 10, @@ -759,10 +762,11 @@ export class PdfDocumentService { * * @returns {Object} An object for `DocDefinition` for `pdf-make`. */ - public createTocLineInline(text: string): Object { + public createTocLineInline(text: string, italics: boolean = false): Object { return { text: '\n' + text, - style: StyleType.SUB_ENTRY + style: StyleType.SUB_ENTRY, + italics: italics }; } diff --git a/client/src/app/site/motions/modules/motion-list/components/motion-list/motion-list.component.html b/client/src/app/site/motions/modules/motion-list/components/motion-list/motion-list.component.html index cc9627aeb..52555a95b 100644 --- a/client/src/app/site/motions/modules/motion-list/components/motion-list/motion-list.component.html +++ b/client/src/app/site/motions/modules/motion-list/components/motion-list/motion-list.component.html @@ -277,21 +277,19 @@ local_offer Tags - + + + + +
-
- -