diff --git a/app/modules/cafe24/templates/cafe24/design_editor.html b/app/modules/cafe24/templates/cafe24/design_editor.html index c070756..6650bfc 100644 --- a/app/modules/cafe24/templates/cafe24/design_editor.html +++ b/app/modules/cafe24/templates/cafe24/design_editor.html @@ -1,7 +1,7 @@ {% extends "erp_base.html" %} {% block head_extra %} - + {% endblock %} {% block content %} diff --git a/app/modules/cafe24/templates/cafe24/products.html b/app/modules/cafe24/templates/cafe24/products.html index 0902b41..561d631 100644 --- a/app/modules/cafe24/templates/cafe24/products.html +++ b/app/modules/cafe24/templates/cafe24/products.html @@ -1,7 +1,7 @@ {% extends "erp_base.html" %} {% block head_extra %} - + {% endblock %} {% block content %} diff --git a/app/modules/cafe24/templates/cafe24/schedules.html b/app/modules/cafe24/templates/cafe24/schedules.html index e4e0109..515d88b 100644 --- a/app/modules/cafe24/templates/cafe24/schedules.html +++ b/app/modules/cafe24/templates/cafe24/schedules.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 4e0b3b0..ac7db6b 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 b86ade0..1b35ede 100644 --- a/app/static/cafe24.css +++ b/app/static/cafe24.css @@ -304,6 +304,9 @@ display: flex; gap: var(--sp-8, 8px); align-items: center; + /* 편집기 칸이 좁으면(세로 모니터 2분할 등) 버튼이 다음 줄로 — 줄바꿈이 없으면 [카페24에 적용]이 잘려 보이지 않았다 */ + flex-wrap: wrap; + min-width: 0; } .cf24-check-inline { @@ -317,6 +320,10 @@ .cf24-memo { width: 260px; + max-width: 100%; + flex: 0 1 260px; + min-width: 140px; + box-sizing: border-box; padding: 6px var(--sp-10, 10px); border: 1px solid var(--color-subtle-ash, #e5e5e5); border-radius: var(--r-lg, 10px); @@ -809,12 +816,16 @@ 왼쪽 목록은 좁게, 가운데 편집기가 남는 폭을, 오른쪽 패널은 고정폭. ════════════════════════════════════════════════════════════ */ .cf24-split.cf24-split-3 { - /* 목록은 320~460px 사이에서 줄어들고, 편집기가 남는 폭을, 패널은 380px 고정. - 1920px: 460 + 380 → 편집기 약 1000px. 1400px: 320 + 380 → 편집기 약 640px. */ - grid-template-columns: minmax(320px, 460px) minmax(0, 1fr) 380px; + /* 목록은 320~460px 사이에서 **먼저** 줄어들고(편집기 640px 를 남기는 폭), 편집기가 남는 폭을, 패널은 380px 고정. + minmax(320px, 460px) 였을 때는 목록이 460px 를 먼저 차지해 1440폭(세로 모니터)에서 편집기가 288px 로 눌렸다(2026-10-15). + 1920px: 목록 460 → 편집기 약 850px. 1601px: 목록 320 → 편집기 약 610px. 그보다 좁으면 아래 2분할. */ + grid-template-columns: clamp(320px, calc(100% - 380px - 24px - 640px), 460px) minmax(0, 1fr) 380px; } -@media (max-width: 1360px) { +/* 2분할(정보 패널을 편집기 아래로) 경계 — 가로 화면은 예전대로 1360px 이하, **세로 화면은 1600px 이하**(2026-10-15). + 세로 모니터(2560×1440 → 폭 1440)는 3분할이면 ERP 왼쪽 메뉴(240px)까지 빠져 편집기가 300px 아래로 눌리고, 높이는 넉넉하다. + 가로 1366~1600 은 높이가 낮아 아래로 내리면 편집기가 300px 대로 낮아지므로 3분할 그대로(목록이 먼저 줄어듦). */ +@media (max-width: 1360px), (max-width: 1600px) and (orientation: portrait) { /* 폭이 모자라면 정보 패널을 편집기 아래로 내린다(목록은 그대로 왼쪽). 아래 칸은 높이를 제한해 편집기가 너무 눌리지 않게 한다(패널 안에서 스크롤). */ .cf24-split.cf24-split-3 { @@ -825,16 +836,28 @@ .cf24-split-3 > .cf24-pane-list { grid-area: list; } .cf24-split-3 > .cf24-pane-editor { grid-area: editor; } .cf24-split-3 > .cf24-pane-side { grid-area: side; max-height: 38vh; } + /* 편집기 칸 높이 = 화면 − 아래 정보 패널(38vh) − 위아래 머리(약 430px). 고정 56vh 면 세로 모니터(1200×1920 등)에서 + 칸보다 커져 편집기 칸 안에서 다시 스크롤해야 했다(2026-10-15). 낮은 화면은 280px 아래로 줄이지 않는다. */ + .cf24-split-3 .cf24-code { height: max(280px, calc(62vh - 430px)); } } @media (max-width: 1100px) { + /* 한 줄로 쌓을 때는 화면 높이에 가두지 않는다 — 위 ≤1360 의 행 틀(minmax(0,1fr) auto)이 남아 목록이 24px 로 + 눌리고, 편집기(56vh)가 칸을 넘어 아래 정보 패널과 겹쳤다(세로 모니터 1080폭, 2026-10-15). 칸마다 제 높이로 + 쌓고 페이지(.erp-page)가 스크롤한다. */ + .erp-page > .cf24-split.cf24-split-3 { + flex: 0 0 auto; + } .cf24-split.cf24-split-3 { grid-template-columns: minmax(0, 1fr); grid-template-areas: none; + grid-template-rows: none; } .cf24-split-3 > .cf24-pane-list, .cf24-split-3 > .cf24-pane-editor, .cf24-split-3 > .cf24-pane-side { grid-area: auto; max-height: none; } + .cf24-split-3 > .cf24-pane-list { max-height: 45vh; } + .cf24-split-3 .cf24-code { height: 56vh; } } .cf24-pane-side {