Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(frontend): screen shot not trigger #209

Merged
merged 9 commits into from
Mar 29, 2025
Merged

Conversation

ZHallen122
Copy link
Collaborator

No description provided.

@ZHallen122 ZHallen122 requested a review from Sma1lboy March 23, 2025 18:07
@ZHallen122 ZHallen122 marked this pull request as ready for review March 23, 2025 18:07
@Sma1lboy Sma1lboy changed the title Fix screen shot not trigger fix(frontend): screen shot not trigger Mar 26, 2025
// Take screenshot
const screenshot = await page.screenshot({
type: 'png',
fullPage: false,
fullPage: true,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should not take full page screen shot, it will be tooo long for some SPA

@@ -39,8 +39,8 @@ export async function GET(req: Request) {

// Set viewport to a reasonable size
await page.setViewport({
width: 1280,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this necessary for correctly taking screenshot?

@Sma1lboy Sma1lboy merged commit 9413a79 into main Mar 29, 2025
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants