update screenshot

This commit is contained in:
joseph le 2023-09-15 14:44:37 +07:00
parent 01965a9745
commit 613eb22614
2 changed files with 2 additions and 1 deletions

View File

@ -13,7 +13,7 @@ export const screenShot = async (filename, time) => {
const bodyHandle = await page.$("body");
const { height } = await bodyHandle.boundingBox();
await bodyHandle.dispose();
await page.setViewport({ width: 1920, height: 500 });
await page.setViewport({ width: 1920, height: 800 });
setTimeout(async () => {
await page.screenshot({ path: "/home/screenshot/"+time+".png" });
browser.close();

View File

@ -30,4 +30,5 @@
/* border-color: -internal-light-dark(rgb(118, 118, 118), rgb(133, 133, 133)); */
/* border-image: initial; */
padding: 5px;
font-size: 1.2rem;
}