From 99c0581d9a57c99bb14ce44cf62c51f836fb5831 Mon Sep 17 00:00:00 2001 From: king Date: Tue, 1 Sep 2026 17:33:09 +0900 Subject: [PATCH] =?UTF-8?q?fix(cupang):=20=EC=83=81=EC=9E=90=20=EA=B3=84?= =?UTF-8?q?=EC=82=B0=20=ED=99=94=EB=A9=B4=EC=9D=B4=20=EB=82=B4=EC=9A=A9?= =?UTF-8?q?=EB=A7=8C=ED=81=BC=20=EB=8A=98=EA=B3=A0=20=ED=8E=98=EC=9D=B4?= =?UTF-8?q?=EC=A7=80=EA=B0=80=20=EC=8A=A4=ED=81=AC=EB=A1=A4=EB=90=98?= =?UTF-8?q?=EA=B2=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit .cpg 가 flex:1 1 auto + min-height:0 이라 남은 높이에 맞춰 눌리기만 해서 ③ 이 늘어나도 페이지 높이가 그대로였다(=스크롤 안 됨). 이 화면에만 .cpg-page-grow 를 붙여 flex:0 0 auto 로 두고, 페이지 스크롤 시 ①② 내부 스크롤 높이를 다시 계산한다. Co-Authored-By: Claude Opus 5 --- app/modules/cupang/templates/cupang/box_calc.html | 6 ++++-- app/modules/cupang/templates/cupang/box_rules.html | 2 +- app/modules/cupang/templates/cupang/centers.html | 2 +- app/modules/cupang/templates/cupang/index.html | 2 +- app/modules/cupang/templates/cupang/products.html | 2 +- app/modules/cupang/templates/cupang/view.html | 2 +- app/static/cupang.css | 10 ++++++++++ 7 files changed, 19 insertions(+), 7 deletions(-) diff --git a/app/modules/cupang/templates/cupang/box_calc.html b/app/modules/cupang/templates/cupang/box_calc.html index f3b6b69..636226f 100644 --- a/app/modules/cupang/templates/cupang/box_calc.html +++ b/app/modules/cupang/templates/cupang/box_calc.html @@ -1,9 +1,9 @@ {% extends "erp_base.html" %} -{% block head_extra %}{% endblock %} +{% block head_extra %}{% endblock %} {% block content %} -
+
◀◀ 달력 @@ -1085,6 +1085,8 @@ } window.addEventListener("resize", fitScrollAreas); + var pageScroller = document.querySelector(".erp-page"); + if (pageScroller) pageScroller.addEventListener("scroll", fitScrollAreas, { passive: true }); function render() { renderSummary(); renderDist(); fitScrollAreas(); } diff --git a/app/modules/cupang/templates/cupang/box_rules.html b/app/modules/cupang/templates/cupang/box_rules.html index 3e179b6..438e494 100644 --- a/app/modules/cupang/templates/cupang/box_rules.html +++ b/app/modules/cupang/templates/cupang/box_rules.html @@ -1,6 +1,6 @@ {% extends "erp_base.html" %} -{% block head_extra %}{% endblock %} +{% block head_extra %}{% endblock %} {% block content %}
diff --git a/app/modules/cupang/templates/cupang/centers.html b/app/modules/cupang/templates/cupang/centers.html index b19138a..761fb1d 100644 --- a/app/modules/cupang/templates/cupang/centers.html +++ b/app/modules/cupang/templates/cupang/centers.html @@ -1,6 +1,6 @@ {% extends "erp_base.html" %} -{% block head_extra %}{% endblock %} +{% block head_extra %}{% endblock %} {% block content %}
diff --git a/app/modules/cupang/templates/cupang/index.html b/app/modules/cupang/templates/cupang/index.html index 01f5aae..fa91b5f 100644 --- a/app/modules/cupang/templates/cupang/index.html +++ b/app/modules/cupang/templates/cupang/index.html @@ -1,6 +1,6 @@ {% extends "erp_base.html" %} -{% block head_extra %}{% endblock %} +{% block head_extra %}{% endblock %} {% block content %}
diff --git a/app/modules/cupang/templates/cupang/products.html b/app/modules/cupang/templates/cupang/products.html index 5962e23..ca63e5b 100644 --- a/app/modules/cupang/templates/cupang/products.html +++ b/app/modules/cupang/templates/cupang/products.html @@ -1,6 +1,6 @@ {% extends "erp_base.html" %} -{% block head_extra %}{% endblock %} +{% block head_extra %}{% endblock %} {% block content %}
diff --git a/app/modules/cupang/templates/cupang/view.html b/app/modules/cupang/templates/cupang/view.html index ae5e1ed..44e841d 100644 --- a/app/modules/cupang/templates/cupang/view.html +++ b/app/modules/cupang/templates/cupang/view.html @@ -1,6 +1,6 @@ {% extends "erp_base.html" %} -{% block head_extra %}{% endblock %} +{% block head_extra %}{% endblock %} {% block content %} {# 출고 묶음 보기 — 상자 계산 화면과 같은 3열 구성. 읽기 전용(수정 없음). #} diff --git a/app/static/cupang.css b/app/static/cupang.css index 1d43c2b..2f19602 100644 --- a/app/static/cupang.css +++ b/app/static/cupang.css @@ -1518,3 +1518,13 @@ body.cpg-dragging { cursor: grabbing; user-select: none; } overflow: visible !important; min-height: 0; } + +/* ── 상자 계산 화면: 내용만큼 늘어나고, 넘치면 페이지(.erp-page)가 스크롤 ── + .cpg 는 기본적으로 flex:1 1 auto + min-height:0 이라 남은 높이에 맞춰 + 눌리기만 하고(=페이지가 안 늘어남) 넘친 내용이 잘려 보였다. */ +.erp-page > .cpg-page-grow { + flex: 0 0 auto; + min-height: auto; +} +.cpg-page-grow .cpg-calc3 { flex: 0 0 auto; min-height: 0; } +.cpg-page-grow .cpg-dist-card { align-self: start; }