From f1d1ae71eec502bb1f06fa1d8f534be6ede6e79e Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 24 May 2026 18:55:49 +0000 Subject: [PATCH] Fix item separator line position; item name bold all-caps - Accent separator line moved to y+lh (one line-height above text baseline) so it sits cleanly above the ITEM/PROJECT/TRAVEL label instead of cutting through it - Item name rendered bold and uppercased --- app/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/index.html b/app/index.html index e7126e0..3e7dd71 100644 --- a/app/index.html +++ b/app/index.html @@ -955,13 +955,13 @@ async function generatePDF() { state.items.forEach((item, itemIdx) => { // Item header needSpace(lh * 6); // need room for at least header + one line - if (itemIdx > 0) pg.drawLine({start:{x:M.left, y:y+3}, end:{x:M.left+W, y:y+3}, thickness:0.75, color:accent}); + if (itemIdx > 0) pg.drawLine({start:{x:M.left, y:y+lh}, end:{x:M.left+W, y:y+lh}, thickness:0.75, color:accent}); pg.drawText('ITEM / PROJECT / TRAVEL', {x:M.left, y, size:sz, font:fontBold, color:accent}); const subStr = `Subtotal: ${baseCur} ${fmtAmt(item._subtotal)}`; const subW = fontBold.widthOfTextAtSize(subStr, sz); pg.drawText(subStr, {x:M.left+W-subW, y, size:sz, font:fontBold, color:accent}); y -= lh; - pg.drawText(item.name, {x:M.left, y, size:sz, font:fontBody, color:black}); + pg.drawText((item.name||'').toUpperCase(), {x:M.left, y, size:sz, font:fontBold, color:black}); y -= lh + 4; // Lines