mirror of
https://github.com/kbenestad/reimburse.git
synced 2026-06-18 08:04:31 +00:00
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
This commit is contained in:
parent
31b5b2e255
commit
67786317d7
1 changed files with 4 additions and 4 deletions
|
|
@ -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 => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue