diff --git a/app/modules/inout/CLAUDE.md b/app/modules/inout/CLAUDE.md index 996cc9b..16a0e9b 100644 --- a/app/modules/inout/CLAUDE.md +++ b/app/modules/inout/CLAUDE.md @@ -72,7 +72,9 @@ ## 오른쪽 달력 (2026-10-21) -- 입출고 **모든 화면** 2열(`.io-split` = 왼쪽 `section.io` | 오른쪽 `_calendar.html` 300px, 1100px 미만은 한 열). 달력 300×320, 스크롤해도 위에 붙음. +- 입출고 **모든 화면** 2열(`.io-split` = 왼쪽 `section.io` | 오른쪽 `_calendar.html`, 1100px 미만은 한 열 300px). 스크롤해도 위에 붙음. + 달력 크기 = 화면에 따라 300~440px(`clamp(300px, 23vw, 440px)`, 높이 ×320/300) — 입출고 화면만 ERP 공용 최대 폭 1550px 를 풀어 넓은 화면 여백을 씀(2026-10-21 "여백이 많다, 더 키워 달라"). + 글자·칸은 달력 너비 기준 `cqw`(300px 일 때 1cqw = 3px)라 같은 비율로 커진다 — 새 크기 값도 px 대신 cqw 로. - 프로젝트 달력 모양(일요일 시작·요일 줄 회색·오늘 검은 동그라미·토 파랑·일/공휴일 빨강 — 공휴일 표는 `project.store.holiday_name` 재사용). 공휴일 이름은 숫자 아래 한 줄(`.io-cal-hol`, 8.5px — 5글자까지 다 보임, 더 길면 … + 말풍선에 전체 이름). - 날짜 칸 = 발주(발주일, 파랑)·입고(입고일, 초록) 건수(취소된 발주 제외), 누르면 그날 목록 팝업 → 발주서. 달 이동은 새로고침 없이 `GET /inout/api/calendar?month=YYYY-MM`(`db.calendar`). diff --git a/app/modules/inout/templates/inout/index.html b/app/modules/inout/templates/inout/index.html index f12b1cf..ef216b7 100644 --- a/app/modules/inout/templates/inout/index.html +++ b/app/modules/inout/templates/inout/index.html @@ -1,6 +1,6 @@ {% extends "erp_base.html" %} {% from "inout/_macros.html" import order_badge, progress, due, n, ymd %} -{% block head_extra %}{% endblock %} +{% block head_extra %}{% endblock %} {% block content %}
{# 2열 — 왼쪽 화면 | 오른쪽 달력(2026-10-21) #} diff --git a/app/modules/inout/templates/inout/order_detail.html b/app/modules/inout/templates/inout/order_detail.html index 7a03cd1..30fd42a 100644 --- a/app/modules/inout/templates/inout/order_detail.html +++ b/app/modules/inout/templates/inout/order_detail.html @@ -20,7 +20,7 @@ {%- endmacro -%} -{% block head_extra %}{% endblock %} +{% block head_extra %}{% endblock %} {% block content %} {% set active = order.status in ('open', 'partial') %} diff --git a/app/modules/inout/templates/inout/order_form.html b/app/modules/inout/templates/inout/order_form.html index 3a2d6a0..f31bcef 100644 --- a/app/modules/inout/templates/inout/order_form.html +++ b/app/modules/inout/templates/inout/order_form.html @@ -1,5 +1,5 @@ {% extends "erp_base.html" %} -{% block head_extra %}{% endblock %} +{% block head_extra %}{% endblock %} {% block content %}
{# 2열 — 왼쪽 화면 | 오른쪽 달력(2026-10-21) #} diff --git a/app/modules/inout/templates/inout/pending.html b/app/modules/inout/templates/inout/pending.html index 3b9f0a1..7fb6b2c 100644 --- a/app/modules/inout/templates/inout/pending.html +++ b/app/modules/inout/templates/inout/pending.html @@ -1,6 +1,6 @@ {% extends "erp_base.html" %} {% from "inout/_macros.html" import due, n, ymd %} -{% block head_extra %}{% endblock %} +{% block head_extra %}{% endblock %} {% block content %}
{# 2열 — 왼쪽 화면 | 오른쪽 달력(2026-10-21) #} diff --git a/app/static/inout.css b/app/static/inout.css index 01512fe..5548549 100644 --- a/app/static/inout.css +++ b/app/static/inout.css @@ -322,36 +322,39 @@ /* 발주 메일 창 — 입고 담당 발주 알림 자동 발송 안내 */ .io-mail-notice { margin: -4px 0 12px; padding: 8px 12px; border-radius: 8px; background: #f0f6ff; border: 1px solid #cfe0fb; color: #1d4f91; font-size: 12.5px; } -/* ── 2열 — 왼쪽 화면 | 오른쪽 달력(2026-10-21). 오른쪽 열 너비 = 달력 너비(300px), 스크롤해도 위에 붙어 있음. - 좁은 화면(1100px 미만)은 한 열 — 달력은 아래로. ── */ -.io-split { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; } +/* ── 2열 — 왼쪽 화면 | 오른쪽 달력(2026-10-21). 오른쪽 열 너비 = 달력 너비, 스크롤해도 위에 붙어 있음. + 달력은 화면 너비에 따라 300~440px(2026-10-21 "달력 오른쪽 여백이 많다 — 더 키워 달라") — 입출고 화면은 ERP 공용 최대 폭(1550px)을 풀어 + 넓은 화면의 빈 여백을 쓴다. 좁은 화면(1100px 미만)은 한 열 — 달력은 아래로. ── */ +.erp-page:has(> .io-split) { max-width: none; } +.io-split { display: grid; grid-template-columns: minmax(0, 1fr) clamp(300px, 23vw, 440px); gap: 20px; align-items: start; } .io-split > .io { min-width: 0; } -.io-side { width: 300px; position: sticky; top: 12px; display: flex; flex-direction: column; gap: 6px; } +.io-side { min-width: 0; position: sticky; top: 12px; display: flex; flex-direction: column; gap: 6px; container-type: inline-size; } @media (max-width: 1100px) { .io-split { grid-template-columns: minmax(0, 1fr); } - .io-side { position: static; } + .io-side { position: static; width: 300px; } } -/* 달력 300×320 — 프로젝트 달력 모양(.pj-cal)을 작게: 머리(제목 ‹ › 오늘) + 둥근 테두리 안 요일 줄(회색) + 6주 */ -.io-cal { width: 300px; height: 320px; box-sizing: border-box; display: flex; flex-direction: column; } +/* 달력 = 오른쪽 열 너비 × (320/300) 높이 — 프로젝트 달력 모양(.pj-cal)을 작게: 머리(제목 ‹ › 오늘) + 둥근 테두리 안 요일 줄(회색) + 6주. + 크기는 모두 달력 너비 기준(cqw — 300px 일 때 1cqw = 3px, 예전 300×320 그대로)이라 커지면 글자·칸이 같은 비율로 커진다. */ +.io-cal { width: 100%; aspect-ratio: 300 / 320; box-sizing: border-box; display: flex; flex-direction: column; } .io-cal.is-loading .io-cal-days { opacity: .55; } -.io-cal-head { flex: none; height: 36px; display: flex; align-items: center; gap: 4px; } -.io-cal-title { margin: 0 2px; font-size: 16px; font-weight: 600; letter-spacing: -0.3px; white-space: nowrap; color: #0a0a0a; } +.io-cal-head { flex: none; height: 12cqw; display: flex; align-items: center; gap: 1.333cqw; } +.io-cal-title { margin: 0 .667cqw; font-size: 5.333cqw; font-weight: 600; letter-spacing: -0.1cqw; white-space: nowrap; color: #0a0a0a; } .io-cal-nav, .io-cal-today { - border: 1px solid var(--color-subtle-ash, #e5e5e5); background: #fff; border-radius: 8px; cursor: pointer; color: #0a0a0a; - height: 28px; line-height: 1; padding: 0 9px; font-size: 13px; + border: 1px solid var(--color-subtle-ash, #e5e5e5); background: #fff; border-radius: 2.667cqw; cursor: pointer; color: #0a0a0a; + height: 9.333cqw; line-height: 1; padding: 0 3cqw; font-size: 4.333cqw; } -.io-cal-nav { font-size: 18px; padding: 0 8px; } +.io-cal-nav { font-size: 6cqw; padding: 0 2.667cqw; } .io-cal-nav:hover, .io-cal-today:hover { background: #f5f5f5; } .io-cal-today { margin-left: auto; } -.io-cal-box { flex: 1 1 auto; min-height: 0; border: 1px solid #e5e5e5; border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; background: #fff; } +.io-cal-box { flex: 1 1 auto; min-height: 0; border: 1px solid #e5e5e5; border-radius: 3.333cqw; overflow: hidden; display: flex; flex-direction: column; background: #fff; } .io-cal-wd { flex: none; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: #f2f2f2; border-bottom: 1px solid #e5e5e5; } -.io-cal-wd span { text-align: center; padding: 4px 0; font-size: 12px; font-weight: 600; color: #0a0a0a; } +.io-cal-wd span { text-align: center; padding: 1.333cqw 0; font-size: 4cqw; line-height: 1.25; font-weight: 600; color: #0a0a0a; } .io-cal-wd .is-sun { color: #c22b10; } .io-cal-wd .is-sat { color: #1d4ed8; } .io-cal-days { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: repeat(6, minmax(0, 1fr)); } .io-cal-day { - all: unset; box-sizing: border-box; min-width: 0; min-height: 0; padding: 3px 3px 2px; cursor: default; - display: flex; flex-direction: column; align-items: center; gap: 1px; + all: unset; box-sizing: border-box; min-width: 0; min-height: 0; padding: 1cqw 1cqw .667cqw; cursor: default; + display: flex; flex-direction: column; align-items: center; gap: .333cqw; border-right: 1px solid #efefef; border-bottom: 1px solid #efefef; } .io-cal-day:nth-child(7n) { border-right: 0; } @@ -359,24 +362,26 @@ .io-cal-day.has-ev { cursor: pointer; } .io-cal-day.has-ev:hover { background: #f2f6ff; } .io-cal-day:focus-visible { outline: 2px solid #1d4ed8; outline-offset: -2px; } -.io-cal-num { font-size: 12px; font-weight: 600; color: #0a0a0a; line-height: 18px; min-width: 18px; text-align: center; border-radius: 9999px; } +.io-cal-num { font-size: 4cqw; font-weight: 600; color: #0a0a0a; line-height: 6cqw; min-width: 6cqw; text-align: center; border-radius: 9999px; } /* 공휴일 이름 — 숫자 아래 한 줄(2026-10-21). 칸이 좁아 넘치면 … (전체 이름은 말풍선). 공휴일 칸은 숫자·이름·건수가 다 들어가게 위아래를 줄인다 */ -.io-cal-hol { display: block; max-width: 100%; font-size: 8.5px; line-height: 10px; font-weight: 600; color: #c22b10; - overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: -0.6px; } +.io-cal-hol { display: block; max-width: 100%; font-size: 2.833cqw; line-height: 3.333cqw; font-weight: 600; color: #c22b10; + overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: -0.2cqw; } .io-cal-day.is-out .io-cal-hol { color: #e3a397; } -.io-cal-day.has-hol { padding: 1px 1px 0; gap: 0; overflow: hidden; } -.io-cal-day.has-hol .io-cal-num { line-height: 16px; } +.io-cal-day.has-hol { padding: .333cqw .333cqw 0; gap: 0; overflow: hidden; } +.io-cal-day.has-hol .io-cal-num { line-height: 5.333cqw; } .io-cal-day.is-sun .io-cal-num { color: #c22b10; } .io-cal-day.is-sat .io-cal-num { color: #1d4ed8; } .io-cal-day.is-out { background: #fafafa; } .io-cal-day.is-out .io-cal-num { color: #bbb; } .io-cal-day.is-today { background: #f5f5f5; } -.io-cal-day.is-today .io-cal-num { background: #0a0a0a; color: #fff; padding: 0 5px; } +.io-cal-day.is-today .io-cal-num { background: #0a0a0a; color: #fff; padding: 0 1.667cqw; } .io-cal-day.is-today.is-sun .io-cal-num { background: #c22b10; color: #fff; } .io-cal-day.is-today.is-sat .io-cal-num { background: #1d4ed8; color: #fff; } -.io-cal-marks { display: flex; gap: 2px; flex-wrap: wrap; justify-content: center; } +.io-cal-marks { display: flex; gap: .667cqw; flex-wrap: wrap; justify-content: center; } +/* 건수 칩 — 기본(범례·날짜 팝업)은 px, 달력 칸 안만 달력 크기를 따라 커진다 */ .io-cal-m { font-style: normal; display: inline-block; min-width: 14px; height: 14px; line-height: 14px; padding: 0 3px; box-sizing: border-box; border-radius: 7px; font-size: 10px; font-weight: 700; color: #fff; text-align: center; } +.io-cal-days .io-cal-m { min-width: 4.667cqw; height: 4.667cqw; line-height: 4.667cqw; padding: 0 1cqw; border-radius: 2.333cqw; font-size: 3.333cqw; } .io-cal-m.is-order { background: #2f6fde; } .io-cal-m.is-receipt { background: #1e8e5a; } .io-cal-err { grid-column: 1 / -1; margin: auto; font-size: 12px; color: #a1261b; }