style(project): 프로젝트 팝업 마감일은 라벨 옆 달력 아이콘, 아이콘 격자 스크롤 제거

- "시작일 · 마감일" → "마감일", 라벨 오른쪽에 날짜 버튼. 날짜가 없으면 점선 원
  달력 아이콘만(enhanceDateInput iconOnly), 있으면 아이콘 + 날짜(시작일은 팝업의
  "+ 시작일"). 새 프로젝트 팝업 마감일도 같게
- 아이콘 격자 높이 제한 제거 — 스크롤 없이 전부 보이고 팝업이 그만큼 길어짐
- 정적 파일 버전 20260926i

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-09-26 13:12:20 +09:00
parent c77ce8e151
commit e800a3937d
7 changed files with 33 additions and 18 deletions
+11 -5
View File
@@ -427,9 +427,15 @@
const text = start && due ? label(start) + " – " + label(due)
: start ? label(start) + " –" : label(due);
const di = dueInfo(due, false);
btn.innerHTML = '<span class="material-symbols-outlined">calendar_month</span>' +
'<span class="pj-date-btn-text"></span>';
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 = '<span class="material-symbols-outlined">calendar_month</span>' +
'<span class="pj-date-btn-text"></span>';
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) {