fix: correct border radius in SVG

This commit is contained in:
Arnošt Pleskot 2023-08-18 19:10:39 +02:00
parent 5ff4e0d640
commit 06ae04c0be
No known key found for this signature in database

View File

@ -219,8 +219,8 @@ export const applyFancyBackgroundOnSvg = async ({
"height",
`${dimensions.height - FANCY_BG_PADDING * 2 * exportScale}`,
);
rect.setAttribute("rx", (FANCY_BG_PADDING * exportScale).toString());
rect.setAttribute("ry", (FANCY_BG_PADDING * exportScale).toString());
rect.setAttribute("rx", (FANCY_BG_BORDER_RADIUS * exportScale).toString());
rect.setAttribute("ry", (FANCY_BG_BORDER_RADIUS * exportScale).toString());
rect.setAttribute("fill", backgroundColor);
svgRoot.appendChild(rect);
};