From 908bd811a048a48a04159e48a02f78e29e066d8a Mon Sep 17 00:00:00 2001 From: marcoskolodny Date: Fri, 29 Nov 2024 15:10:45 +0100 Subject: [PATCH] cleanup --- src/pages/advent-calendar-2024/pages/claim-your-gift.jsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/pages/advent-calendar-2024/pages/claim-your-gift.jsx b/src/pages/advent-calendar-2024/pages/claim-your-gift.jsx index ac69dd8a1c..ae9f9476f8 100644 --- a/src/pages/advent-calendar-2024/pages/claim-your-gift.jsx +++ b/src/pages/advent-calendar-2024/pages/claim-your-gift.jsx @@ -725,8 +725,10 @@ const ClaimYourGift = () => { const originalSvgElement = document.getElementById("illustration-svg"); const clonedSvgElement = originalSvgElement.cloneNode(true); - clonedSvgElement.setAttribute("width", "500px"); - clonedSvgElement.setAttribute("height", "700px"); + const posterWidth = 500; + + clonedSvgElement.setAttribute("width", `${posterWidth}`); + clonedSvgElement.setAttribute("height", `${(posterWidth * 7) / 5}px`); const svgString = new XMLSerializer().serializeToString(clonedSvgElement); const url = URL.createObjectURL( new Blob([svgString], { type: "image/svg+xml" })