mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-23 05:56:10 +08:00
parent
6cbfb70df5
commit
33f04bd965
1 changed files with 2 additions and 2 deletions
|
@ -304,8 +304,8 @@ export async function screenshot(): Promise<void> {
|
|||
$("#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,
|
||||
|
|
Loading…
Add table
Reference in a new issue