fix: BUG-006 copy feedback, BUG-008 white border CSS reset, BUG-010 CORS allow all origins

This commit is contained in:
OpenClaw 2026-02-14 15:41:22 +00:00
parent d8bc3fd8e6
commit 53bebc0119
3 changed files with 6 additions and 7 deletions

View file

@ -33,6 +33,7 @@ export async function renderPdf(
const page: Page = await browser.newPage();
try {
await page.setContent(html, { waitUntil: "networkidle0", timeout: 15_000 });
await page.addStyleTag({ content: "* { margin: 0; padding: 0; } body { margin: 0; }" });
const pdf = await page.pdf({
format: (options.format as any) || "A4",