Deploy Inicial do SteelCheck com Docker Build Automatizado

This commit is contained in:
2026-06-23 00:28:34 +00:00
parent e82656e5c2
commit c70f578009
2 changed files with 36 additions and 27 deletions
+9
View File
@@ -16,6 +16,11 @@ export const exportAsPdf = async (elementId: string, fileName: string, action: '
}
try {
const isDark = document.documentElement.classList.contains('dark');
if (isDark) {
document.documentElement.classList.remove('dark');
}
const pdf = new jsPDF({
orientation: 'portrait',
unit: 'mm',
@@ -44,6 +49,10 @@ export const exportAsPdf = async (elementId: string, fileName: string, action: '
pdf.addImage(imgData, 'JPEG', 0, 0, pdfWidth, pdfHeight);
}
if (isDark) {
document.documentElement.classList.add('dark');
}
if (action === 'download') {
pdf.save(`${fileName}.pdf`);
} else {