fix(pdf): restore partnership label before Instagram handle in footer
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
d5e0ec531e
commit
d0fdd3f157
1 file changed
+12
-3
@@ -105,18 +105,27 @@ export function drawFooter(
|
||||
})
|
||||
}
|
||||
|
||||
const partnerLabel = `${dict['footer.in_partnership']} `
|
||||
const handle = '@paws.iin.harmony'
|
||||
const partnerLabelW = fonts.bodyRegular.widthOfTextAtSize(partnerLabel, FONT_SIZE)
|
||||
const handleW = fonts.bodyRegular.widthOfTextAtSize(handle, FONT_SIZE)
|
||||
const handleX = width - MARGIN_X - handleW
|
||||
const partnerX = width - MARGIN_X - partnerLabelW - handleW
|
||||
page.drawText(partnerLabel, {
|
||||
x: partnerX,
|
||||
y: textBaseY,
|
||||
size: FONT_SIZE,
|
||||
font: fonts.bodyRegular,
|
||||
color: muted,
|
||||
})
|
||||
page.drawText(handle, {
|
||||
x: handleX,
|
||||
x: partnerX + partnerLabelW,
|
||||
y: textBaseY,
|
||||
size: FONT_SIZE,
|
||||
font: fonts.bodyRegular,
|
||||
color: accent,
|
||||
})
|
||||
addLinkAnnotation(page, {
|
||||
x: handleX,
|
||||
x: partnerX + partnerLabelW,
|
||||
y: textBaseY - 2,
|
||||
width: handleW,
|
||||
height: FONT_SIZE + 4,
|
||||
|
||||
Reference in new issue
Block a user