From 4be7c7f5808cdba661626663f22cc2adaf62ab0d Mon Sep 17 00:00:00 2001 From: king Date: Fri, 14 Aug 2026 11:04:08 +0900 Subject: [PATCH] =?UTF-8?q?fix(cafe24):=20=ED=8E=98=EC=9D=B4=EC=A7=80=20?= =?UTF-8?q?=EB=82=B4=EC=9A=A9=EC=9D=B4=20=EC=9E=98=EB=A0=A4=20[=EC=B9=B4?= =?UTF-8?q?=ED=8E=9824=20=EC=97=B0=EA=B2=B0]=20=EB=B2=84=ED=8A=BC=EC=9D=B4?= =?UTF-8?q?=20=EC=95=88=20=EB=B3=B4=EC=9D=B4=EB=8D=98=20=EB=AC=B8=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit .erp-page 는 flex column + overflow-y:auto 인데 자식의 flex-shrink 기본값이 1 이라, 내용이 화면 높이보다 길어지면 카드가 눌려 아래쪽이 잘렸다. 넘친 게 없다고 판단되어 스크롤바도 생기지 않아 시스템 화면의 연결 버튼에 접근할 수 없었다. 카페24 템플릿에서만 로드되는 cafe24.css 에 `.erp-page > * { flex-shrink: 0 }` 를 넣어 축소를 막았다. 전역 erp-shell.css 를 고치지 않은 것은 다른 모듈 (휴가·쿠팡 등)이 .vac/.cpg 로 "한 화면 채움" 레이아웃을 쓰고 있어 회귀 위험이 있기 때문이다. 캐시된 CSS 가 쓰이지 않게 두 템플릿의 버전 쿼리를 20260814a→b 로 올렸다. Co-Authored-By: Claude Opus 5 --- app/modules/cafe24/templates/cafe24/index.html | 2 +- app/modules/cafe24/templates/cafe24/system.html | 2 +- app/static/cafe24.css | 9 +++++++++ 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/app/modules/cafe24/templates/cafe24/index.html b/app/modules/cafe24/templates/cafe24/index.html index fdd790f..ab6b237 100644 --- a/app/modules/cafe24/templates/cafe24/index.html +++ b/app/modules/cafe24/templates/cafe24/index.html @@ -1,7 +1,7 @@ {% extends "erp_base.html" %} {% block head_extra %} - + {% endblock %} {% block content %} diff --git a/app/modules/cafe24/templates/cafe24/system.html b/app/modules/cafe24/templates/cafe24/system.html index 4f8ccef..829ff84 100644 --- a/app/modules/cafe24/templates/cafe24/system.html +++ b/app/modules/cafe24/templates/cafe24/system.html @@ -1,7 +1,7 @@ {% extends "erp_base.html" %} {% block head_extra %} - + {% endblock %} {% block content %} diff --git a/app/static/cafe24.css b/app/static/cafe24.css index d76ac18..1c09d32 100644 --- a/app/static/cafe24.css +++ b/app/static/cafe24.css @@ -2,6 +2,15 @@ 전역(erp.css) 은 건드리지 않는다. 클래스 접두사: cf24- 색상은 erp.css 의 :root 토큰을 재사용한다. */ +/* .erp-page 는 flex column + overflow-y:auto 다. 자식의 flex-shrink 기본값이 + 1 이라 내용이 화면보다 길면 카드가 눌려 잘리고(스크롤도 안 생긴다), + 시스템 화면의 [카페24 연결] 버튼처럼 카드 아래쪽이 사라진다. + 축소를 막아 넘친 만큼 .erp-page 가 스크롤하게 한다. + 이 파일은 카페24 템플릿에서만 로드되므로 다른 모듈에는 영향이 없다. */ +.erp-page > * { + flex-shrink: 0; +} + .cf24-card { margin-bottom: var(--sp-16, 16px); }