Skip to content

Commit 655f57b

Browse files
committed
all: emulate viewport with width 1440
1 parent 2e636cb commit 655f57b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ func render(imgfile, code string) error {
142142
var picbuf []byte
143143
sel := "#export-container .container-bg"
144144
err := chromedp.Run(ctx, chromedp.Tasks{
145+
chromedp.EmulateViewport(2560, 1440),
145146
chromedp.Navigate(url),
146147
screenshot(sel, &picbuf, chromedp.NodeReady, chromedp.ByID),
147148
})

0 commit comments

Comments
 (0)