Skip to content

Commit 91cff70

Browse files
SuboyyyDevNonotuturd
authored
Feat/send ticket (#270)
* feat: new email system * feat: add General Mail route * feat: back to street legal * feat: add sendTemplate * fix: it's better with .fr * fix: update email template topics * fix: add return and fix preview undefined * fix: change minor mail target * fix: lint * fix: lint2 * test: disable mail tests * test: disable other mail test * feat: mail smtp * Update .env.example * Update notPaid.ts * Update env.ts * fix: serialized mail now handle attachment * fix: lint * feat: update ticket generation with new design and layout adjustments * fix: adjust text positioning for place in ticket generation --------- Co-authored-by: Noé Landré <[email protected]> Co-authored-by: Arthur Dodin <[email protected]> Co-authored-by: Antoine D <[email protected]>
1 parent 78da9a0 commit 91cff70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/ticket.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export const generateTicket = async (cartItem: DetailedCartItem): Promise<EmailA
7878
if (user.place) {
7979
const place = `Siège ${user.place}`;
8080
const placeWidth = document.widthOfString(place);
81-
textFormat.text(place, textX - placeWidth / 2, height - lineSpaceCorrection * 2);
81+
textFormat.text(place, textX - placeWidth / 2, height - fontSize - lineSpaceCorrection * 4);
8282
}
8383
// Place the QR Code
8484
document.image(qrcode, qrCodeX, qrCodeY, { width: qrCodeSize });

0 commit comments

Comments
 (0)