From 3f1ea543f159bc92fa3c4ba6ea209cb897f56c0a Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 24 May 2026 19:18:06 +0000 Subject: [PATCH] Draw item separator at stripe bottom, not above it --- app/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/index.html b/app/index.html index 1a51661..ec1b13e 100644 --- a/app/index.html +++ b/app/index.html @@ -956,8 +956,8 @@ async function generatePDF() { // Item header needSpace(lh * 7); // need room for separator gap + header + one line if (itemIdx > 0) { - y -= lh; // create gap below previous item before drawing separator - pg.drawLine({start:{x:M.left, y:y+lh}, end:{x:M.left+W, y:y+lh}, thickness:0.75, color:accent}); + pg.drawLine({start:{x:M.left, y}, end:{x:M.left+W, y}, thickness:0.75, color:accent}); + y -= lh; // space between separator and item header text } pg.drawText('ITEM / PROJECT / TRAVEL', {x:M.left, y, size:sz, font:fontBold, color:accent}); const subStr = `Subtotal: ${baseCur} ${fmtAmt(item._subtotal)}`;