NOISSUE - Remove reports trailing empty page (#328)

* remove empty page

Signed-off-by: nyagamunene <stevenyaga2014@gmail.com>

* revert env variable

Signed-off-by: nyagamunene <stevenyaga2014@gmail.com>

---------

Signed-off-by: nyagamunene <stevenyaga2014@gmail.com>
This commit is contained in:
Steve Munene
2025-10-07 18:24:09 +03:00
committed by GitHub
parent b9f401cb73
commit ce5cb76dd4
2 changed files with 43 additions and 3 deletions
@@ -292,18 +292,51 @@
}
@media print {
@page {
size: A4;
margin: 0;
}
html, body {
width: 210mm;
height: auto;
margin: 0 !important;
padding: 0 !important;
}
.page {
box-shadow: none;
margin: 0;
max-width: none;
width: 210mm;
height: 297mm;
min-height: auto;
min-height: 297mm;
margin: 0;
display: block;
page-break-after: always;
break-inside: avoid;
}
.page:last-child {
page-break-after: auto;
}
.header, .footer {
break-inside: avoid;
}
.content-area {
overflow: hidden;
padding-bottom: calc(var(--footer-height) + 6mm);
}
.footer {
position: absolute;
left: var(--page-padding);
right: var(--page-padding);
bottom: var(--page-padding);
}
.table-container { overflow: hidden; }
}
</style>
</head>