feat(project): 카드 하위 업무 펼치기/접기 부드러운 애니메이션

보드를 다시 그리지 않고 그 카드 안에서만 grid-template-rows 0fr↔1fr 전환
(.25s)으로 높이를 늘이고 줄인다. 목록을 먼저 받아 채운 뒤 펼쳐 높이가
두 번 튀지 않게. prefers-reduced-motion 이면 전환 없음.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-09-24 00:11:05 +09:00
parent 9d89caf131
commit 08b5d84c08
5 changed files with 79 additions and 24 deletions
+8 -1
View File
@@ -800,7 +800,14 @@
.pj-card-subtoggle-ic { display: block; margin-left: 3px; }
.pj-card-subtoggle-caret { font-size: 18px; margin-left: -2px; transition: transform .12s; }
.pj-card-subtoggle.is-open .pj-card-subtoggle-caret { transform: rotate(180deg); }
.pj-card-subs { margin: 10px -4px 0; border-top: 1px solid #eef0f2; }
/* 펼침 애니메이션 — grid 행 0fr→1fr 로 내용 높이만큼 부드럽게(높이 고정값 불필요) */
.pj-card-subs-wrap {
display: grid; grid-template-rows: 0fr; margin-top: 0; opacity: 0;
transition: grid-template-rows .25s ease, margin-top .25s ease, opacity .2s ease;
}
.pj-card-subs-wrap.is-open { grid-template-rows: 1fr; margin-top: 10px; opacity: 1; }
.pj-card-subs { min-height: 0; overflow: hidden; margin: 0 -4px; border-top: 1px solid #eef0f2; }
@media (prefers-reduced-motion: reduce) { .pj-card-subs-wrap { transition: none; } }
.pj-card-sub {
display: flex; align-items: center; gap: 6px; min-height: 34px; padding: 2px 4px;
border-bottom: 1px solid #eef0f2; font-size: 13px; color: var(--pj-ink);