gen-screenshot: stop subtracting 16 px from width

It looks like some update to my system fixed it.
This commit is contained in:
D. Bohdan 2023-10-17 09:45:30 +00:00
parent 1281155f20
commit 2d9b1023cf
1 changed files with 1 additions and 3 deletions

View File

@ -15,10 +15,8 @@ const slugify = (str: string) =>
.replace(/(^-|-$)/g, "");
const saveScreenshot = async (src: string, dest: string) => {
// For whatever reason, I get screenshots 16 pixels wider than the requested
// viewport size.
const browser = await puppeteer.launch({
defaultViewport: { width: 1024 - 16, height: 1024, deviceScaleFactor: 1 },
defaultViewport: { width: 1024, height: 1024, deviceScaleFactor: 1 },
});
const page = await browser.newPage();