From e800a3937d864f5fa73c8571fe0e8367a5a0358a Mon Sep 17 00:00:00 2001 From: king Date: Sat, 26 Sep 2026 13:12:20 +0900 Subject: [PATCH] =?UTF-8?q?style(project):=20=ED=94=84=EB=A1=9C=EC=A0=9D?= =?UTF-8?q?=ED=8A=B8=20=ED=8C=9D=EC=97=85=20=EB=A7=88=EA=B0=90=EC=9D=BC?= =?UTF-8?q?=EC=9D=80=20=EB=9D=BC=EB=B2=A8=20=EC=98=86=20=EB=8B=AC=EB=A0=A5?= =?UTF-8?q?=20=EC=95=84=EC=9D=B4=EC=BD=98,=20=EC=95=84=EC=9D=B4=EC=BD=98?= =?UTF-8?q?=20=EA=B2=A9=EC=9E=90=20=EC=8A=A4=ED=81=AC=EB=A1=A4=20=EC=A0=9C?= =?UTF-8?q?=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - "시작일 · 마감일" → "마감일", 라벨 오른쪽에 날짜 버튼. 날짜가 없으면 점선 원 달력 아이콘만(enhanceDateInput iconOnly), 있으면 아이콘 + 날짜(시작일은 팝업의 "+ 시작일"). 새 프로젝트 팝업 마감일도 같게 - 아이콘 격자 높이 제한 제거 — 스크롤 없이 전부 보이고 팝업이 그만큼 길어짐 - 정적 파일 버전 20260926i Co-Authored-By: Claude Opus 5.5 --- .../project/templates/project/_side_modals.html | 6 +++--- app/modules/project/templates/project/inbox.html | 4 ++-- .../project/templates/project/mytasks.html | 4 ++-- .../project/templates/project/project.html | 4 ++-- app/modules/project/templates/project/trash.html | 4 ++-- app/static/project.css | 13 +++++++++++-- app/static/project.js | 16 +++++++++++----- 7 files changed, 33 insertions(+), 18 deletions(-) diff --git a/app/modules/project/templates/project/_side_modals.html b/app/modules/project/templates/project/_side_modals.html index 3248860..a445c77 100644 --- a/app/modules/project/templates/project/_side_modals.html +++ b/app/modules/project/templates/project/_side_modals.html @@ -16,7 +16,7 @@ {# 날짜 칸은 project.js enhanceDateInput 이 아사나식 날짜 버튼으로 바꾼다(input 은 숨긴 값 저장소). label 로 감싸지 않는다 — label 안의 버튼을 누르면 숨긴 input 이 다시 눌리는 문제가 생긴다. #} -
마감일
+
마감일
{# 색상·아이콘은 label 로 감싸지 않는다 — label 글자를 누르면 첫 버튼이 눌린다. #}
색상 @@ -41,8 +41,8 @@ - {# 시작일·마감일은 버튼 하나(아사나식 날짜 팝업의 "+ 시작일") — enhanceDateInput(startInput) #} -
시작일 · 마감일 + {# 마감일 — 오른쪽 달력 아이콘(없으면 점선 원). 시작일은 날짜 팝업의 "+ 시작일"로 — enhanceDateInput(startInput) #} +
마감일
diff --git a/app/modules/project/templates/project/inbox.html b/app/modules/project/templates/project/inbox.html index a4ce128..5c59b21 100644 --- a/app/modules/project/templates/project/inbox.html +++ b/app/modules/project/templates/project/inbox.html @@ -1,7 +1,7 @@ {% extends "erp_base.html" %} {% block head_extra %} - + {% endblock %} @@ -99,5 +99,5 @@ {% include "project/_side_modals.html" %} {% include "project/_member_tasks_modal.html" %} - + {% endblock %} diff --git a/app/modules/project/templates/project/mytasks.html b/app/modules/project/templates/project/mytasks.html index bef4f93..7b7de69 100644 --- a/app/modules/project/templates/project/mytasks.html +++ b/app/modules/project/templates/project/mytasks.html @@ -1,7 +1,7 @@ {% extends "erp_base.html" %} {% block head_extra %} - + {% endblock %} @@ -98,5 +98,5 @@ "today": {{ today | tojson }} } - + {% endblock %} diff --git a/app/modules/project/templates/project/project.html b/app/modules/project/templates/project/project.html index 13ee660..89fcfe5 100644 --- a/app/modules/project/templates/project/project.html +++ b/app/modules/project/templates/project/project.html @@ -1,7 +1,7 @@ {% extends "erp_base.html" %} {% block head_extra %} - + @@ -466,5 +466,5 @@ - + {% endblock %} diff --git a/app/modules/project/templates/project/trash.html b/app/modules/project/templates/project/trash.html index e3a2127..44b2e79 100644 --- a/app/modules/project/templates/project/trash.html +++ b/app/modules/project/templates/project/trash.html @@ -1,7 +1,7 @@ {% extends "erp_base.html" %} {% block head_extra %} - + {% endblock %} @@ -68,5 +68,5 @@ {% include "project/_side_modals.html" %} {% include "project/_member_tasks_modal.html" %} - + {% endblock %} diff --git a/app/static/project.css b/app/static/project.css index 99a14f5..14f443f 100644 --- a/app/static/project.css +++ b/app/static/project.css @@ -589,6 +589,15 @@ .pj-date-btn:hover { background: #f6f7f8; border-color: #c4c9d0; } .pj-date-btn.is-empty { color: #9aa1a9; } .pj-date-btn.is-overdue { color: #c22b10; } +/* 날짜가 없을 때 — 테두리 없이 점선 원 달력 아이콘만(아사나) */ +.pj-date-btn.is-icon-only { + width: 32px; height: 32px; padding: 0; justify-content: center; border: none; border-radius: 50%; + background: transparent; color: #6d6e6f; +} +.pj-date-btn.is-icon-only:hover { background: #eceef0; color: #1e1f21; } +/* 라벨 오른쪽에 바로 날짜 버튼(프로젝트 새로 만들기·수정 팝업의 마감일) */ +.pj-modal-card .pj-field-label.pj-field-inline { display: flex; align-items: center; gap: 10px; } +.pj-field-inline .pj-date-btn { margin-top: 0; } /* 하위 작업 추가 줄 안에서는 옆 칸들과 높이를 맞춘다 */ .pj-subtask-form .pj-date-btn { margin-top: 0; height: 32px; padding: 0 10px; font-size: 12.5px; } /* 화면엔 안 보이지만 달력이 버튼 자리에 뜨도록 렌더는 유지(display:none 이면 showPicker 불가) */ @@ -648,8 +657,8 @@ } /* 프로젝트 아이콘 고르기(아사나) — 회색 아이콘 격자, 고른 것은 보라 강조. 길면 칸 안에서 스크롤 */ .pj-icon-palette { - display: grid; grid-template-columns: repeat(auto-fill, 38px); gap: 6px; margin-top: 6px; - max-height: 186px; overflow-y: auto; padding: 2px; + /* 높이 제한 없음 — 아이콘 전부가 스크롤 없이 보이고 팝업이 그만큼 길어진다 */ + display: grid; grid-template-columns: repeat(auto-fill, 38px); gap: 6px; margin-top: 6px; padding: 2px; } .pj-icon-pick { width: 38px; height: 38px; padding: 0; border: none; border-radius: 8px; background: transparent; diff --git a/app/static/project.js b/app/static/project.js index 0ea85d4..8897755 100644 --- a/app/static/project.js +++ b/app/static/project.js @@ -427,9 +427,15 @@ const text = start && due ? label(start) + " – " + label(due) : start ? label(start) + " –" : label(due); const di = dueInfo(due, false); - btn.innerHTML = 'calendar_month' + - ''; - btn.querySelector(".pj-date-btn-text").textContent = text || (opts.placeholder || "날짜 선택"); + // opts.iconOnly — 날짜가 없으면 글자 없이 점선 원 달력 아이콘만(아사나), 있으면 아이콘 + 날짜. + if (opts.iconOnly && !text) { + btn.innerHTML = DUE_EMPTY_ICON_SVG; + } else { + btn.innerHTML = 'calendar_month' + + ''; + btn.querySelector(".pj-date-btn-text").textContent = text || (opts.placeholder || "날짜 선택"); + } + btn.classList.toggle("is-icon-only", !!opts.iconOnly && !text); btn.classList.toggle("is-empty", !text); btn.classList.toggle("is-overdue", !!di && di.cls === "is-overdue"); btn.title = text ? "날짜 변경" : "날짜 지정"; @@ -1175,8 +1181,8 @@ } // 프로젝트 모달의 날짜 칸 — 브라우저 기본 달력 대신 아사나식 날짜 팝업. - enhanceDateInput(el("pj-f-due"), { placeholder: "마감일 없음" }); - enhanceDateInput(el("pj-e-due"), { startInput: el("pj-e-start"), placeholder: "날짜 없음" }); + enhanceDateInput(el("pj-f-due"), { iconOnly: true }); + enhanceDateInput(el("pj-e-due"), { startInput: el("pj-e-start"), iconOnly: true }); // "+" — 새 최상위 프로젝트. 기본은 만든 프로젝트 화면으로 이동한다. initNewProjectModal(isAdmin, cfg.onCreated || function (project) {