From 33f04bd965c55b7703cf495e30f755cfda3eddc4 Mon Sep 17 00:00:00 2001 From: Miodec Date: Thu, 1 Sep 2022 11:43:53 +0200 Subject: [PATCH] fixed screenshot framing closes #3447 --- frontend/src/ts/test/test-ui.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/ts/test/test-ui.ts b/frontend/src/ts/test/test-ui.ts index f473a6781..c51614d0d 100644 --- a/frontend/src/ts/test/test-ui.ts +++ b/frontend/src/ts/test/test-ui.ts @@ -304,8 +304,8 @@ export async function screenshot(): Promise { $("#ad-result-small-wrapper").addClass("hidden"); if (revertCookie) $("#cookiePopupWrapper").addClass("hidden"); try { - const paddingX = 50; - const paddingY = 50; + const paddingX = Misc.convertRemToPixels(2); + const paddingY = Misc.convertRemToPixels(2); html2canvas(document.body, { backgroundColor: await ThemeColors.get("bg"), width: sourceWidth + paddingX * 2,