From 1bf56f237d3e80f0979b28a4196eeae62062e120 Mon Sep 17 00:00:00 2001 From: diaco Date: Mon, 5 Oct 2026 10:49:08 +0330 Subject: [PATCH] Calibrate print label field positions Co-authored-by: Cursor --- slips/static/slips/css/label_print.css | 29 ++++++++++++++++++++------ 1 file changed, 23 insertions(+), 6 deletions(-) diff --git a/slips/static/slips/css/label_print.css b/slips/static/slips/css/label_print.css index 2aecd6b..ceac27d 100644 --- a/slips/static/slips/css/label_print.css +++ b/slips/static/slips/css/label_print.css @@ -12,25 +12,25 @@ .val-batch { font-size: 7pt; - top: 61mm; + top: 63mm; /* +2mm vs prior top-row calibration */ left: 30.2mm; } .val-date { font-size: 6pt; - top: 61mm; + top: 63mm; /* +2mm vs prior top-row calibration */ left: 67.4mm; } .val-next { font-size: 7pt; - top: 66.5mm; + top: 68.5mm; /* +2mm vs prior top-row calibration */ left: 84.2mm; } .val-weight { font-size: 7pt; - top: 66.5mm; + top: 68.5mm; /* +2mm vs prior top-row calibration */ left: 37.3mm; } @@ -41,10 +41,27 @@ */ .slip-quadrant:nth-child(n + 3) .val-batch, .slip-quadrant:nth-child(n + 3) .val-date { - top: 31.3mm; + top: 43.3mm; /* +12mm vs prior bottom-row calibration */ } .slip-quadrant:nth-child(n + 3) .val-next, .slip-quadrant:nth-child(n + 3) .val-weight { - top: 36.8mm; + top: 48.8mm; /* +12mm vs prior bottom-row calibration */ +} + +.slip-quadrant:nth-child(n + 3) .val-date { + left: 70.4mm; /* +3mm vs top-row date */ +} + +.slip-quadrant:nth-child(n + 3) .val-next { + left: 87.2mm; /* +3mm vs top-row next control */ +} + +/* Right column (TR, BR): Batch# and Net weight */ +.slip-quadrant:nth-child(2n) .val-batch { + left: 22.2mm; /* -8mm vs left-column batch */ +} + +.slip-quadrant:nth-child(2n) .val-weight { + left: 29.3mm; /* -8mm vs left-column weight */ }