Skip to content

Commit 260da7d

Browse files
fix: remove unnecessary style tag from certificate rendering function
1 parent 04174b0 commit 260da7d

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

utils.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -423,16 +423,6 @@ async def render_certificate_playwright(url: str, output_path: str):
423423
await page.evaluate("window.scrollTo(0, 0)")
424424
await page.wait_for_timeout(700)
425425

426-
await page.add_style_tag(
427-
content="""
428-
.certification-container, .main-content, body {
429-
border-radius: 32px !important;
430-
overflow: hidden !important;
431-
box-shadow: 0 0 24px #0004;
432-
}
433-
"""
434-
)
435-
436426
# Screenshot full certificate
437427
await page.screenshot(path=output_path, full_page=True)
438428

0 commit comments

Comments
 (0)