Fix extra blank page when printing single label

Removed page-break-after: always and reset html/body height to auto
so the print renderer doesn't generate a trailing empty page.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-07 11:47:44 +07:00
parent 4e05910cd3
commit d17eed5bfc
2 changed files with 12 additions and 2 deletions
@@ -71,10 +71,15 @@
} }
@media print { @media print {
.no-print { display: none !important; } .no-print { display: none !important; }
:global(html), :global(body) {
margin: 0 !important;
padding: 0 !important;
height: auto !important;
min-height: 0 !important;
}
.label { .label {
border: none !important; border: none !important;
margin: 0 !important; margin: 0 !important;
page-break-after: always;
} }
} }
</style> </style>
@@ -71,10 +71,15 @@
} }
@media print { @media print {
.no-print { display: none !important; } .no-print { display: none !important; }
:global(html), :global(body) {
margin: 0 !important;
padding: 0 !important;
height: auto !important;
min-height: 0 !important;
}
.label { .label {
border: none !important; border: none !important;
margin: 0 !important; margin: 0 !important;
page-break-after: always;
} }
} }
</style> </style>