Fix 2-page label: reset @page margin to 0, shrink barcode to fit
Deploy to LXC / deploy (push) Successful in 19s

The custom @page margins conflicted with browser minimum margins,
causing overflow. Now @page margin is 0, barcode height 8mm→6mm,
scale 3→2, text size 12→10 so content fits within 29mm even with
browser minimum margins selected.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-13 09:52:01 +07:00
parent bb125396f2
commit 2f1675af1d
4 changed files with 11 additions and 11 deletions
+2 -2
View File
@@ -5,10 +5,10 @@ export async function generateBarcodeSvg(text: string): Promise<string> {
const buf = await bwipjs.toBuffer({
bcid: 'code128',
text,
scale: 3,
scale: 2,
height: 8,
includetext: true,
textsize: 12,
textsize: 10,
textxalign: 'center'
});