From fb473f74ee32cc951f37a01ffe6d8332fcbcde3d Mon Sep 17 00:00:00 2001 From: king Date: Wed, 17 Jun 2026 14:06:56 +0900 Subject: [PATCH] =?UTF-8?q?fix(malaysia):=20=EB=9E=99=20=EB=8B=A4=EC=A4=91?= =?UTF-8?q?=20=ED=8C=8C=EB=A0=9B=ED=8A=B8=20=EC=9D=B8=EC=87=84=20=EC=8B=9C?= =?UTF-8?q?=20=ED=8C=8C=EB=A0=9B=ED=8A=B8=EB=8B=B9=20=ED=95=9C=20=EC=9E=A5?= =?UTF-8?q?=EC=94=A9=20=EB=B6=84=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 미리보기 컨테이너(.rvp-pages)가 flex라 Chrome이 자식의 page-break를 무시해 여러 파렛트가 한 장에 뭉쳐 잘려 인쇄됐다. 인쇄 시 block 으로 바꾸고 break-after:page 적용해 파렛트(칸)마다 종이 한 장씩 출력. Co-Authored-By: Claude Opus 4.8 --- app/modules/malaysia/templates/malaysia/rack_view.html | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/app/modules/malaysia/templates/malaysia/rack_view.html b/app/modules/malaysia/templates/malaysia/rack_view.html index cd31ad6..fca0f3a 100644 --- a/app/modules/malaysia/templates/malaysia/rack_view.html +++ b/app/modules/malaysia/templates/malaysia/rack_view.html @@ -77,13 +77,16 @@ background:#fff !important; overflow:visible !important; } .rvp-toolbar { display:none !important; } - .rvp-pages { gap:0 !important; } + /* flex 컨테이너면 Chrome이 자식의 page-break를 무시해 여러 칸이 한 장에 + 뭉쳐 잘림. block 으로 바꿔 칸(파렛트)마다 한 장씩 끊어 인쇄. */ + .rvp-pages { display:block !important; gap:0 !important; } .rvp-sheet { width:100% !important; height:100vh !important; aspect-ratio:auto !important; - box-shadow:none !important; border-radius:0 !important; page-break-after:always; + box-shadow:none !important; border-radius:0 !important; padding:2mm !important; + break-after:page; page-break-after:always; } - .rvp-sheet:last-child { page-break-after:auto; } + .rvp-sheet:last-child { break-after:auto; page-break-after:auto; } /* 인쇄 시 글씨 더 크게(멀리서도 보이게) — cm 기준. 칸에 상품이 1개일 때 기준. 2개·3개 이상이면 한 장에 다 들어가도록 단계 축소. */ .rvp-line .rvp-name { font-size:2.6cm; }