From 69d1c35883ee1c7287ea97a1eeded81fcb1cdc2a Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 24 May 2026 19:03:11 +0000 Subject: [PATCH] =?UTF-8?q?Increase=20gap=20between=20items:=20drop=202?= =?UTF-8?q?=C3=97lh=20before=20separator=20line?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Previously y -= lh then line at y+lh put the separator exactly at the stripe bottom with no breathing room. Dropping 2×lh leaves one full line height of white space between the stripe and the separator, and another line height between the separator and the item header. --- app/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/index.html b/app/index.html index 1a51661..4611b74 100644 --- a/app/index.html +++ b/app/index.html @@ -954,9 +954,9 @@ async function generatePDF() { // Items state.items.forEach((item, itemIdx) => { // Item header - needSpace(lh * 7); // need room for separator gap + header + one line + needSpace(lh * 8); // need room for separator gap + header + one line if (itemIdx > 0) { - y -= lh; // create gap below previous item before drawing separator + y -= lh * 2; // full gap below previous item's stripe before separator 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});