From 79d58f994d272dc7e50a92169ea77bbeb31088d7 Mon Sep 17 00:00:00 2001 From: adrianbonpin Date: Wed, 19 Aug 2026 01:28:48 +0800 Subject: [PATCH] fix: Year Level nudge reduced to 6pt (half) --- pdf.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pdf.js b/pdf.js index 733d7a7..2b63291 100644 --- a/pdf.js +++ b/pdf.js @@ -185,8 +185,8 @@ if (header.program) page.drawText(compactProgram(header.program), { x: 338, y, size: 9, font, color: black }); if (yearLevelText) { const w = font.widthOfTextAtSize(yearLevelText, 9); - // Right-aligned to the content edge, nudged left ~12pt (~1rem). - page.drawText(yearLevelText, { x: margin + contentWidth - w - 12, y, size: 9, font, color: black }); + // Right-aligned to the content edge, nudged left ~6pt (half of 1rem). + page.drawText(yearLevelText, { x: margin + contentWidth - w - 6, y, size: 9, font, color: black }); } if (header.studentId || header.fullName || header.program || yearLevelText) y -= 14.5;