diff --git a/AppImage/components/latency-detail-modal.tsx b/AppImage/components/latency-detail-modal.tsx index 9aa1dce8..e5c34b19 100644 --- a/AppImage/components/latency-detail-modal.tsx +++ b/AppImage/components/latency-detail-modal.tsx @@ -231,12 +231,11 @@ const generateLatencyReport = (report: ReportData) => { ` } - // Inner report HTML (will be embedded in iframe) - has viewport=1024 for consistent print - const reportHtml = ` + const html = ` - + Network Latency Report - ${report.targetLabel} - - -
-
- -
-
ProxMenux Network Latency Report
-
Review the report, then print or save as PDF
-
-
-
- - -
-
- - -` - - // Open wrapper page - const wrapperBlob = new Blob([wrapperHtml], { type: "text/html" }) - const wrapperUrl = URL.createObjectURL(wrapperBlob) - window.open(wrapperUrl, "_blank") + // Use Blob URL for Safari-safe preview + const blob = new Blob([html], { type: "text/html" }) + const url = URL.createObjectURL(blob) + window.open(url, "_blank") } export function LatencyDetailModal({ open, onOpenChange, currentLatency }: LatencyDetailModalProps) { diff --git a/AppImage/components/security.tsx b/AppImage/components/security.tsx index 7d36962a..2590d156 100644 --- a/AppImage/components/security.tsx +++ b/AppImage/components/security.tsx @@ -940,12 +940,11 @@ export function Security() { const actionableSuggestions = report.suggestions.length - (report.proxmox_expected_suggestions ?? 0) const totalExpected = (report.proxmox_expected_warnings ?? 0) + (report.proxmox_expected_suggestions ?? 0) - // Inner report HTML (will be embedded in iframe) - has viewport=1024 for consistent print - const reportHtml = ` + return ` - + Security Audit Report - ${report.hostname || "ProxMenux"} - - -
-
- -
-
ProxMenux Security Audit Report
-
Review the report, then print or save as PDF
-
-
-
- - -
-
- ` }