style(project): 프로젝트 팝업 마감일은 라벨 옆 달력 아이콘, 아이콘 격자 스크롤 제거
- "시작일 · 마감일" → "마감일", 라벨 오른쪽에 날짜 버튼. 날짜가 없으면 점선 원 달력 아이콘만(enhanceDateInput iconOnly), 있으면 아이콘 + 날짜(시작일은 팝업의 "+ 시작일"). 새 프로젝트 팝업 마감일도 같게 - 아이콘 격자 높이 제한 제거 — 스크롤 없이 전부 보이고 팝업이 그만큼 길어짐 - 정적 파일 버전 20260926i Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
<label>설명<textarea id="pj-f-desc" rows="2"></textarea></label>
|
||||
{# 날짜 칸은 project.js enhanceDateInput 이 아사나식 날짜 버튼으로 바꾼다(input 은 숨긴 값 저장소).
|
||||
label 로 감싸지 않는다 — label 안의 버튼을 누르면 숨긴 input 이 다시 눌리는 문제가 생긴다. #}
|
||||
<div class="pj-field-label">마감일<input type="date" id="pj-f-due" /></div>
|
||||
<div class="pj-field-label pj-field-inline">마감일<input type="date" id="pj-f-due" /></div>
|
||||
{# 색상·아이콘은 label 로 감싸지 않는다 — label 글자를 누르면 첫 버튼이 눌린다. #}
|
||||
<div class="pj-field-label">색상
|
||||
<span class="pj-color-palette" id="pj-f-colors"></span>
|
||||
@@ -41,8 +41,8 @@
|
||||
<input type="hidden" id="pj-e-id" />
|
||||
<label>이름<input type="text" id="pj-e-name" placeholder="프로젝트 이름" /></label>
|
||||
<label>설명<textarea id="pj-e-desc" rows="2"></textarea></label>
|
||||
{# 시작일·마감일은 버튼 하나(아사나식 날짜 팝업의 "+ 시작일") — enhanceDateInput(startInput) #}
|
||||
<div class="pj-field-label">시작일 · 마감일
|
||||
{# 마감일 — 오른쪽 달력 아이콘(없으면 점선 원). 시작일은 날짜 팝업의 "+ 시작일"로 — enhanceDateInput(startInput) #}
|
||||
<div class="pj-field-label pj-field-inline">마감일
|
||||
<input type="date" id="pj-e-start" />
|
||||
<input type="date" id="pj-e-due" />
|
||||
</div>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{% extends "erp_base.html" %}
|
||||
|
||||
{% block head_extra %}
|
||||
<link rel="stylesheet" href="/static/project.css?v=20260926h" />
|
||||
<link rel="stylesheet" href="/static/project.css?v=20260926i" />
|
||||
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
|
||||
{% endblock %}
|
||||
|
||||
@@ -99,5 +99,5 @@
|
||||
{% include "project/_side_modals.html" %}
|
||||
{% include "project/_member_tasks_modal.html" %}
|
||||
|
||||
<script src="/static/project.js?v=20260926h" defer></script>
|
||||
<script src="/static/project.js?v=20260926i" defer></script>
|
||||
{% endblock %}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{% extends "erp_base.html" %}
|
||||
|
||||
{% block head_extra %}
|
||||
<link rel="stylesheet" href="/static/project.css?v=20260926h" />
|
||||
<link rel="stylesheet" href="/static/project.css?v=20260926i" />
|
||||
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
|
||||
{% endblock %}
|
||||
|
||||
@@ -98,5 +98,5 @@
|
||||
"today": {{ today | tojson }}
|
||||
}
|
||||
</script>
|
||||
<script src="/static/project.js?v=20260926h" defer></script>
|
||||
<script src="/static/project.js?v=20260926i" defer></script>
|
||||
{% endblock %}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{% extends "erp_base.html" %}
|
||||
|
||||
{% block head_extra %}
|
||||
<link rel="stylesheet" href="/static/project.css?v=20260926h" />
|
||||
<link rel="stylesheet" href="/static/project.css?v=20260926i" />
|
||||
<!-- 구글 머티리얼 심볼(담당자 아이콘 등) — self-host -->
|
||||
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
|
||||
<!-- 타임라인 vis-timeline — self-host -->
|
||||
@@ -466,5 +466,5 @@
|
||||
</script>
|
||||
|
||||
<script src="/static/vendor/vis-timeline/vis-timeline-graph2d.min.js"></script>
|
||||
<script src="/static/project.js?v=20260926h" defer></script>
|
||||
<script src="/static/project.js?v=20260926i" defer></script>
|
||||
{% endblock %}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{% extends "erp_base.html" %}
|
||||
|
||||
{% block head_extra %}
|
||||
<link rel="stylesheet" href="/static/project.css?v=20260926h" />
|
||||
<link rel="stylesheet" href="/static/project.css?v=20260926i" />
|
||||
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
|
||||
{% endblock %}
|
||||
|
||||
@@ -68,5 +68,5 @@
|
||||
{% include "project/_side_modals.html" %}
|
||||
{% include "project/_member_tasks_modal.html" %}
|
||||
|
||||
<script src="/static/project.js?v=20260926h" defer></script>
|
||||
<script src="/static/project.js?v=20260926i" defer></script>
|
||||
{% endblock %}
|
||||
|
||||
+11
-2
@@ -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;
|
||||
|
||||
+11
-5
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user