From bbd89c419020cb273bf174174a9b9f18affabbd1 Mon Sep 17 00:00:00 2001 From: "Torsten Schulz (local)" Date: Fri, 4 Sep 2026 14:38:49 +0200 Subject: [PATCH] feat(PDFGenerator): center align text in PDF generation --- frontend/src/components/PDFGenerator.js | 2 +- frontend/src/views/OfficialTournaments.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/PDFGenerator.js b/frontend/src/components/PDFGenerator.js index 3dfdc45b..d3d27585 100755 --- a/frontend/src/components/PDFGenerator.js +++ b/frontend/src/components/PDFGenerator.js @@ -577,7 +577,7 @@ class PDFGenerator { this.pdf.roundedRect(this.margin, y - 5, 210 - this.margin * 2, boxHeight, 1.5, 1.5, 'FD'); this.pdf.setFont('helvetica', 'bold'); this.pdf.setFontSize(11); - this.pdf.text(lines, this.margin + 3, y + 1); + this.pdf.text(lines, 105, y + 1, { align: 'center' }); y += boxHeight + 4; } this.pdf.setFont('helvetica', 'bold'); diff --git a/frontend/src/views/OfficialTournaments.vue b/frontend/src/views/OfficialTournaments.vue index 66767c56..f1f1b464 100755 --- a/frontend/src/views/OfficialTournaments.vue +++ b/frontend/src/views/OfficialTournaments.vue @@ -1999,7 +1999,7 @@ export default { parseDateTimeFlexible(s) { if (!s || typeof s !== 'string') return null; const t = s.trim(); - let m = t.match(/(\d{1,2})\.(\d{1,2})\.(\d{4})(?:\s+(\d{1,2}):(\d{2}))?/); + let m = t.match(/(\d{1,2})\.(\d{1,2})\.(\d{4})(?:\s*,?\s*(\d{1,2}):(\d{2}))?/); if (m) { const hours = Number(m[4] || 0); const minutes = Number(m[5] || 0);