fix: raise total underline above the number

This commit is contained in:
adrianbonpin
2026-08-19 00:54:27 +08:00
parent e6249ae330
commit 4ef392423a
+1 -1
View File
@@ -330,7 +330,7 @@
const unitsCol = cols[4]; const unitsCol = cols[4];
const w = bold.widthOfTextAtSize(data.totalUnits, 8); const w = bold.widthOfTextAtSize(data.totalUnits, 8);
// Short underline above the total, spanning the UNITS column. // Short underline above the total, spanning the UNITS column.
hline(unitsCol.x, unitsCol.x + unitsCol.w, y + 2); hline(unitsCol.x, unitsCol.x + unitsCol.w, y + 9);
page.drawText(data.totalUnits, { x: unitsCol.x + unitsCol.w - w, y, size: 8, font: bold, color: black }); page.drawText(data.totalUnits, { x: unitsCol.x + unitsCol.w - w, y, size: 8, font: bold, color: black });
y -= 12; y -= 12;
} }