fix: explicit css media queries for printing to prevent blank pages

This commit is contained in:
2026-06-23 13:53:32 +00:00
parent 189bf399dc
commit 1d08f16f73
2 changed files with 21 additions and 4 deletions
+18 -1
View File
@@ -30,6 +30,13 @@
animation: fade-in 0.5s ease-out forwards;
}
/* Screen specific rules */
@media screen {
.app-print-wrapper {
display: none !important;
}
}
/* High-quality native browser printing */
@media print {
* {
@@ -37,9 +44,19 @@
print-color-adjust: exact !important;
}
.app-main-content {
display: none !important;
}
.app-print-wrapper {
display: block !important;
position: relative !important;
width: 100% !important;
}
@page {
margin: 0;
size: A4;
size: A4 portrait;
}
body {