diff --git a/attached_assets/스크린샷 2025-09-30 오후 3.14.07_1759212869091.png b/attached_assets/스크린샷 2025-09-30 오후 3.14.07_1759212869091.png new file mode 100644 index 0000000..0ae8b34 Binary files /dev/null and b/attached_assets/스크린샷 2025-09-30 오후 3.14.07_1759212869091.png differ diff --git a/attached_assets/스크린샷 2025-09-30 오후 3.15.52_1759212956186.png b/attached_assets/스크린샷 2025-09-30 오후 3.15.52_1759212956186.png new file mode 100644 index 0000000..7b7128e Binary files /dev/null and b/attached_assets/스크린샷 2025-09-30 오후 3.15.52_1759212956186.png differ diff --git a/client/src/pages/Report.tsx b/client/src/pages/Report.tsx index 6e3bc35..abe0ae0 100644 --- a/client/src/pages/Report.tsx +++ b/client/src/pages/Report.tsx @@ -27,6 +27,39 @@ export default function Report() { return `${baseUrl}${content.pptPath}`; }; + // Remove margins and padding from iframe content + const handleReportLoad = (e: React.SyntheticEvent) => { + try { + const iframe = e.currentTarget; + const iframeDoc = iframe.contentDocument || iframe.contentWindow?.document; + if (iframeDoc) { + const style = iframeDoc.createElement('style'); + style.textContent = ` + html, body { + margin: 0 !important; + padding: 0 !important; + } + body > * { + margin: 0 !important; + } + h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote { + margin-top: 0 !important; + } + .report, .container, .page, .content { + margin: 0 !important; + padding: 8px !important; + } + @page { + margin: 0 !important; + } + `; + iframeDoc.head.appendChild(style); + } + } catch (e) { + console.error('Could not inject styles into iframe:', e); + } + }; + return (
{/* Header */} @@ -39,9 +72,9 @@ export default function Report() { {/* Main Content */} -
+
- + Report @@ -58,9 +91,10 @@ export default function Report() {