fix: Year Level nudge reduced to 6pt (half)

This commit is contained in:
adrianbonpin
2026-08-19 01:28:48 +08:00
parent 161f540e40
commit 79d58f994d
+2 -2
View File
@@ -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;