From 6a2eded9b5357d69607aa841de48c4245ca0af14 Mon Sep 17 00:00:00 2001 From: king Date: Wed, 17 Jun 2026 14:12:20 +0900 Subject: [PATCH] =?UTF-8?q?fix(malaysia):=20=EB=9E=99=20=EC=9D=B8=EC=87=84?= =?UTF-8?q?=20=ED=8E=98=EC=9D=B4=EC=A7=80=20=EB=B6=84=EB=A6=AC=EB=A5=BC=20?= =?UTF-8?q?break-before=20=EB=A1=9C=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit break-after:page 가 Chrome에서 100vh 시트에 무시돼 여러 파렛트가 한 장에 인쇄되던 문제. 첫 칸 제외 매 칸에 break-before:page 적용해 파렛트마다 새 장으로 확실히 분리. Co-Authored-By: Claude Opus 4.8 --- app/modules/malaysia/templates/malaysia/rack_view.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/modules/malaysia/templates/malaysia/rack_view.html b/app/modules/malaysia/templates/malaysia/rack_view.html index fca0f3a..acfd733 100644 --- a/app/modules/malaysia/templates/malaysia/rack_view.html +++ b/app/modules/malaysia/templates/malaysia/rack_view.html @@ -84,9 +84,10 @@ width:100% !important; height:100vh !important; aspect-ratio:auto !important; box-shadow:none !important; border-radius:0 !important; padding:2mm !important; - break-after:page; page-break-after:always; + /* break-before 가 Chrome에서 더 안정적: 첫 칸 제외 매 칸을 새 장으로. */ + break-before:page; page-break-before:always; } - .rvp-sheet:last-child { break-after:auto; page-break-after:auto; } + .rvp-sheet:first-child { break-before:auto; page-break-before:auto; } /* 인쇄 시 글씨 더 크게(멀리서도 보이게) — cm 기준. 칸에 상품이 1개일 때 기준. 2개·3개 이상이면 한 장에 다 들어가도록 단계 축소. */ .rvp-line .rvp-name { font-size:2.6cm; }