fix: side barcode alignment

This commit is contained in:
Popa committed 2026-09-30 13:17:31 +02:00
1 parent 3e18abf434
commit 9a700ef86f
1 file changed
+16 -3
+16 -3
View File
@@ -242,10 +242,23 @@
width: 100%,
height: 3.25cm,
inset: (x: 2em),
align(outer-side + horizon, rotate(90deg * odd-side, align(center)[
if odd-side == -1 {
align(right + horizon, rotate(-90deg, align(center)[
#code
#place(bottom + center, dy: 0.15em, text(size: 0.18em, fill: theme.primary)[#datamatrix-slug/#page-num])
])),
#place(bottom + center, dy: 0.15em, text(
size: 0.18em,
fill: theme.primary,
)[#datamatrix-slug/#page-num])
]))
} else {
align(left + horizon, rotate(-90deg, align(center)[
#code
#place(bottom + center, dy: 0.15em, text(
size: 0.18em,
fill: theme.primary,
)[#datamatrix-slug/#page-num])
]))
},
),
)
}