feat(project): 작업 팝업의 하위 작업 줄을 아사나식으로(드래그 순서·아이콘·날짜)

- ⠿ 손잡이로 끌어 하위 작업 순서 변경
  (PUT /project/api/tasks/{id}/subtasks/order → db.reorder_subtasks)
- 담당자는 아이콘만(아바타/점선 원), 누르면 아이콘+이름 메뉴
- 마감일은 날짜 글자만(없으면 점선 달력 아이콘), 누르면 아사나식 날짜 팝업
- 제목 칸은 글자 길이만큼, 줄의 빈 곳을 누르면 하위 작업 열기
- 완료는 ✓ 아이콘, 삭제는 우클릭 메뉴로(줄의 × 제거)
- 정적 파일 버전 20260925g

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-09-25 19:44:39 +09:00
parent ea15c90a61
commit 3620482913
9 changed files with 294 additions and 77 deletions
+57 -17
View File
@@ -922,27 +922,67 @@ label.pj-desc-fmtbtn { line-height: 26px; }
/* ── 하위 업무(인라인) ── */
.pj-subtask-list { list-style: none; margin: 0 0 8px; padding: 0; }
.pj-subtask-row { display: flex; align-items: center; gap: 6px; padding: 4px 2px; }
/* 완료된 하위 업무는 행 전체를 반투명하게(체크박스 포함) + 제목 취소선. */
.pj-subtask-row.is-done { opacity: .5; }
/* 하위 작업 한 줄(아사나식): ⠿ · ✓ · 제목(글자 폭만큼) · 빈 곳(누르면 열기) · 마감일 · 담당자 · › */
.pj-subtask-row {
display: flex; align-items: center; gap: 4px; padding: 3px 2px; min-height: 36px;
border-bottom: 1px solid #eef0f2; cursor: pointer; border-radius: 4px;
}
.pj-subtask-row:hover { background: #f6f7f8; }
.pj-subtask-row.is-dragging { opacity: .4; }
/* 완료된 하위 작업은 제목을 흐리게 + 취소선(아사나) */
.pj-subtask-row.is-done .pj-subtask-title { text-decoration: line-through; color: #9aa1a9; }
.pj-subtask-row input[type="checkbox"] { width: auto; margin: 0; flex: 0 0 auto; }
/* 하위 업무 열기(›) — 줄에 마우스를 올리면 진해진다 */
.pj-subtask-handle {
flex: 0 0 auto; display: inline-flex; width: 16px; justify-content: center;
color: #9aa1a9; cursor: grab; opacity: 0; transition: opacity .12s;
}
.pj-subtask-handle .material-symbols-outlined { font-size: 18px; }
.pj-subtask-row:hover .pj-subtask-handle { opacity: 1; }
.pj-subtask-check {
flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
width: 26px; height: 26px; padding: 0; border: none; background: transparent; border-radius: 50%;
color: #6d6e6f; cursor: pointer;
}
.pj-subtask-check .material-symbols-outlined { font-size: 21px; }
.pj-subtask-check:hover { color: #3f8f6b; }
.pj-subtask-row.is-done .pj-subtask-check { color: #3f8f6b; }
.pj-subtask-row.is-done .pj-subtask-check .material-symbols-outlined { font-variation-settings: "FILL" 1; }
.pj-subtask-title {
/* 폭은 JS(fitTitle)가 글자 길이만큼 인라인으로 준다. 공용 input[type=text]
규칙의 width:100% 는 인라인 폭이 이긴다. */
flex: 0 1 auto; min-width: 40px; max-width: 100%; cursor: text;
border: 1px solid transparent !important; background: transparent;
padding: 3px 6px !important; font-size: 14px !important; margin: 0 !important;
}
.pj-subtask-title:hover, .pj-subtask-title:focus { border-color: #d8dce2 !important; background: #fff; }
.pj-subtask-fill { flex: 1 1 0; align-self: stretch; min-width: 8px; }
/* 마감일 — 날짜 글자만(아사나). 없으면 줄에 마우스를 올릴 때만 점선 원 달력 아이콘 */
.pj-subtask-due {
flex: 0 0 auto; white-space: nowrap; font-size: 12px; color: var(--pj-ink-soft);
padding: 2px 4px; border-radius: 4px; cursor: pointer;
}
.pj-subtask-due:not(.is-empty):hover { background: #eceef0; }
.pj-subtask-due.is-overdue { color: #c22b10; }
.pj-subtask-due.is-soon { color: #3f8f6b; }
.pj-subtask-due.is-empty {
display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; padding: 0;
border-radius: 50%; color: #6d6e6f; opacity: 0; transition: opacity .12s;
}
.pj-subtask-row:hover .pj-subtask-due.is-empty { opacity: 1; }
.pj-subtask-due.is-empty:hover { color: #1e1f21; background: #eceef0; }
/* 담당자 — 아이콘만(아바타 / 없으면 점선 원 사람 아이콘, 줄 hover 때만) */
.pj-subtask-av {
flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
width: 26px; height: 26px; border-radius: 50%; cursor: pointer; color: #6d6e6f;
}
.pj-subtask-av img.pj-person-ic { width: 22px; height: 22px; border-radius: 50%; }
.pj-subtask-av .pj-gicon { font-size: 22px; }
.pj-subtask-av.is-empty { opacity: 0; transition: opacity .12s; }
.pj-subtask-row:hover .pj-subtask-av.is-empty { opacity: 1; }
.pj-subtask-av.is-empty:hover { color: #1e1f21; background: #eceef0; }
/* 하위 작업 열기(›) — 줄에 마우스를 올리면 진해진다 */
.pj-subtask-open { flex: 0 0 auto; width: 26px; height: 26px; color: #9aa1a9; }
.pj-subtask-row:hover .pj-subtask-open { color: var(--pj-ink); }
.pj-subtask-open .material-symbols-outlined { font-size: 20px; }
.pj-subtask-title {
/* flex-basis 는 반드시 0(퍼센트 아님) — auto 로 두면 .pj-modal-card 의 공용
input[type=text] 규칙이 준 width:100% 로 넘어가 버려 한 줄 배치가 깨진다. */
flex: 1 1 0; width: auto !important; min-width: 0;
border: 1px solid transparent !important; background: transparent;
padding: 4px 6px !important; font-size: 13px !important; margin: 0 !important;
}
.pj-subtask-title:hover, .pj-subtask-title:focus { border-color: #d8dce2 !important; background: #fff; }
.pj-subtask-assignee {
flex: 0 0 auto; width: 110px !important; font-size: 12px !important; padding: 4px 6px !important; margin: 0 !important;
}
.pj-subtask-due { flex: 0 0 auto; width: 128px !important; font-size: 12px !important; padding: 4px 6px !important; margin: 0 !important; }
.pj-subtask-form { display: flex; gap: 6px; flex-wrap: wrap; }
.pj-subtask-form input[type="text"] {
flex: 1 1 120px; width: auto !important; min-width: 90px; margin: 0 !important;