From 1424772afa1def930f61a202f6fec1bb6853e6e7 Mon Sep 17 00:00:00 2001 From: king Date: Fri, 19 Jun 2026 00:24:21 +0900 Subject: [PATCH] =?UTF-8?q?fix(malaysia):=20=EC=B0=BD=EA=B3=A0=20POG=20?= =?UTF-8?q?=EC=9D=B8=EC=87=84=20=EC=8B=9C=20grid=20=EA=B9=A8=EC=A7=90=20?= =?UTF-8?q?=EC=88=98=EC=A0=95(6=EC=97=B4=20=EB=B3=B5=EA=B5=AC)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit container-type:size 가 인쇄에서 자식 grid 를 3열로 깨는 Chrome 버그 회피 — 인쇄 전용으로 containment 해제, 글자·여백 mm 고정, 시트 height:210mm(A4 가로 1면=1장). 화면 미리보기는 cqh 유지. Co-Authored-By: Claude Opus 4.8 --- .../templates/malaysia/rack_view.html | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/app/modules/malaysia/templates/malaysia/rack_view.html b/app/modules/malaysia/templates/malaysia/rack_view.html index 58ccc49..279ff2f 100644 --- a/app/modules/malaysia/templates/malaysia/rack_view.html +++ b/app/modules/malaysia/templates/malaysia/rack_view.html @@ -168,13 +168,28 @@ } body.printing-pog .pog-toolbar { display:none !important; } body.printing-pog .pog-pages { display:block !important; } - /* 면(시트)마다 한 장. height:100vh → 컨테이너=페이지라 cqh 가 그대로 맞음 */ + /* 면(시트)마다 한 장(A4 가로). container-type:size 가 인쇄 시 자식 grid 를 + 깨는 Chrome 버그 회피 → containment 해제하고 글자/여백은 mm 로 고정. + (화면 미리보기는 위쪽 cqh 그대로 사용) */ body.printing-pog .pog-sheet { - width:100% !important; height:100vh !important; aspect-ratio:auto !important; + container-type:normal !important; + width:100% !important; height:210mm !important; aspect-ratio:auto !important; + padding:6mm 5mm !important; box-shadow:none !important; border-radius:0 !important; page-break-inside:avoid; break-before:page; page-break-before:always; } body.printing-pog .pog-sheet:first-child { break-before:auto; page-break-before:auto; } + body.printing-pog .pog-sheet .pog-sheet-head { margin-bottom:4mm !important; } + body.printing-pog .pog-sheet .pog-sheet-head .pog-t { font-size:8mm !important; } + body.printing-pog .pog-sheet .pog-sheet-head .pog-meta { font-size:4.5mm !important; } + body.printing-pog .pog-sheet .rv-row { gap:2mm !important; margin:0 0 2mm !important; } + body.printing-pog .pog-sheet .rv-cell { padding:1.5mm 2mm !important; } + body.printing-pog .pog-sheet .rv-cell-head { + font-size:3.6mm !important; margin-bottom:1mm !important; padding-bottom:0.8mm !important; + } + body.printing-pog .pog-sheet .rv-items { gap:1mm !important; } + body.printing-pog .pog-sheet .rv-item { font-size:3.6mm !important; } + body.printing-pog .pog-sheet .rv-empty-note { font-size:3.6mm !important; } } {% endblock %}