From 67786317d71269cfe7701441696124e8f803e15e Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 13 May 2026 10:01:52 +0000 Subject: [PATCH] Standardise all field labels to szSm-1 in PDF output Staff/Period/Currency header labels and Explanation were using szSm while all line field labels used szSm-1, causing inconsistent sizing. https://claude.ai/code/session_014uUwDBtG5y5FuWcy5zqVD1 --- index.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index 60c76ea..eaa5dcd 100644 --- a/index.html +++ b/index.html @@ -609,9 +609,9 @@ async function generatePDF() { const col2 = W * 0.5; const col3 = W * 0.8; - pg.drawText('Staff', {x:M.left, y, size:szSm, font:fontBold, color:gray}); - pg.drawText('Period', {x:M.left+col2, y, size:szSm, font:fontBold, color:gray}); - pg.drawText('Currency', {x:M.left+col3, y, size:szSm, font:fontBold, color:gray}); + pg.drawText('Staff', {x:M.left, y, size:szSm-1, font:fontBold, color:gray}); + pg.drawText('Period', {x:M.left+col2, y, size:szSm-1, font:fontBold, color:gray}); + pg.drawText('Currency', {x:M.left+col3, y, size:szSm-1, font:fontBold, color:gray}); y -= lh; pg.drawText(state.staff, {x:M.left, y, size:sz, font:fontBody, color:black}); pg.drawText(`${formatDate(state.periodFrom)} to ${formatDate(state.periodTo)}`, {x:M.left+col2, y, size:sz, font:fontBody, color:black}); @@ -692,7 +692,7 @@ async function generatePDF() { }); } else if (!ln.hasReceipt) { needSpace(lh * 2); - pg.drawText('Explanation:', {x:M.left, y, size:szSm, font:fontBold, color:gray}); + pg.drawText('Explanation:', {x:M.left, y, size:szSm-1, font:fontBold, color:gray}); y -= lh; const explLines = wrapText(ln.noReceiptExplanation || '–', fontBody, sz, W); explLines.forEach(line => {