From c15a746ae46638788b3041ef10633f788b1777dc Mon Sep 17 00:00:00 2001 From: king Date: Tue, 13 Oct 2026 03:10:32 +0900 Subject: [PATCH] style(cupang): box list table right edge lines up with the summary cards The scroll area reserved a 10px scrollbar gutter + 2px padding inside the card content width, so the table was 12px narrower than the KPI cards. Move that space into the card's 16px padding (margin-right: -12px); reset on narrow screens where the list does not scroll. Co-Authored-By: Claude Opus 5.5 --- app/modules/cupang/templates/cupang/box_calc.html | 2 +- app/modules/cupang/templates/cupang/box_rules.html | 2 +- app/modules/cupang/templates/cupang/index.html | 2 +- app/modules/cupang/templates/cupang/products.html | 2 +- app/modules/cupang/templates/cupang/sales.html | 2 +- app/modules/cupang/templates/cupang/view.html | 2 +- app/static/cupang.css | 3 +++ 7 files changed, 9 insertions(+), 6 deletions(-) diff --git a/app/modules/cupang/templates/cupang/box_calc.html b/app/modules/cupang/templates/cupang/box_calc.html index 610148d..c267948 100644 --- a/app/modules/cupang/templates/cupang/box_calc.html +++ b/app/modules/cupang/templates/cupang/box_calc.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/box_rules.html b/app/modules/cupang/templates/cupang/box_rules.html index e4b9263..cd93d0a 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/index.html b/app/modules/cupang/templates/cupang/index.html index 59692e3..3271fc8 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 04c2337..166424b 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/sales.html b/app/modules/cupang/templates/cupang/sales.html index 6a74aee..d38c17e 100644 --- a/app/modules/cupang/templates/cupang/sales.html +++ b/app/modules/cupang/templates/cupang/sales.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 681d9d4..54cf7fd 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 3160038..3a24d43 100644 --- a/app/static/cupang.css +++ b/app/static/cupang.css @@ -1327,6 +1327,8 @@ a.cpg-boxno-dl:hover { background: #1a5c38; border-color: #1a5c38; font-weight: .cpg-boxno-table { table-layout: fixed; width: 100%; } /* 출고 상세 상자 목록 — 위 요약 카드와 20px 띄움 */ .cpg-calc-sum .cpg-boxno-scroll { margin-top: 20px; } +/* 표 오른쪽 끝 = 요약 카드 오른쪽 끝 — 스크롤바 칸(10px)+여백(2px)을 카드 안쪽 여백(16px)으로 내보낸다 */ +.cpg-calc-sum .cpg-boxno-scroll { margin-right: -12px; } .cpg-boxno-table th, .cpg-boxno-table td { box-sizing: border-box; padding: 4px 8px; @@ -1496,6 +1498,7 @@ a.cpg-boxno-dl:hover { background: #1a5c38; border-color: #1a5c38; font-weight: max-height: none; overflow: visible; } + .cpg-calc-sum .cpg-boxno-scroll { margin-right: 0; padding-right: 0; } /* 스크롤 없음 — 스크롤바 칸도 없다 */ } /* ── 넓은 화면(3열): ③ 카드 자체가 스크롤러 ──