fix(project): workload bars fill by completion rate, not task count

Bar height was scaled to the largest count, so 9/13 looked nearly empty
and 1/1 short. Each bar is now the whole set; green fill = done ratio,
with count and percent above.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-07 14:43:21 +09:00
parent 452e8a9093
commit 569b33ece4
11 changed files with 31 additions and 29 deletions
+8 -9
View File
@@ -1544,7 +1544,7 @@ img.pj-person-ic { width: 22px; height: 22px; }
box-shadow: var(--pj-card-shadow); padding: 18px 20px 20px; min-width: 0;
}
.pj-dash-card-wide { grid-column: 1 / -1; }
/* 담당자별 작업 합계 — 사람마다 메인·하위 세로 막대(아래 초록 = 완료, 위 = 미완료). 누르면 오른쪽 업무 목록 패널 */
/* 담당자별 작업 합계 — 사람마다 메인·하위 세로 막대. 막대 = 그 작업 전체(100%), 초록 채움 = 완료율. 누르면 오른쪽 업무 목록 패널 */
.pj-wl-legend { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: -6px 0 14px; font-size: 12px; color: var(--pj-ink-soft); }
.pj-wl-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.pj-wl-legend i.is-done { background: var(--color-success-green, #2e9e5b); }
@@ -1560,15 +1560,14 @@ img.pj-person-ic { width: 22px; height: 22px; }
}
.pj-wl-col:disabled { cursor: default; opacity: .55; }
.pj-wl-col:not(:disabled):hover .pj-wl-track, .pj-wl-col:focus-visible .pj-wl-track { box-shadow: 0 0 0 2px var(--pj-accent); }
.pj-wl-val { font-size: 12px; font-weight: 700; color: var(--pj-ink); margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.pj-wl-track { position: relative; display: block; width: 30px; height: 150px; border-radius: 6px 6px 4px 4px; background: #f3f4f6; }
.pj-wl-stack {
position: absolute; left: 0; right: 0; bottom: 0; height: 0; display: flex; flex-direction: column;
border-radius: 6px 6px 4px 4px; overflow: hidden; transition: height .7s cubic-bezier(.22,.9,.3,1);
.pj-wl-val { display: flex; flex-direction: column; align-items: center; font-size: 12px; font-weight: 700; color: var(--pj-ink); margin-bottom: 6px; font-variant-numeric: tabular-nums; line-height: 1.25; }
.pj-wl-val small { font-size: 10.5px; font-weight: 600; color: var(--pj-ink-soft); }
.pj-wl-track { position: relative; display: block; width: 30px; height: 150px; border-radius: 6px 6px 4px 4px; background: #f1f2f4; overflow: hidden; }
.pj-wl-track.has-tasks { background: var(--pj-accent-tint); box-shadow: inset 0 0 0 1px #d9d2fb; } /* 미완료 몫 */
.pj-wl-done {
position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: var(--color-success-green, #2e9e5b);
transition: height .7s cubic-bezier(.22,.9,.3,1);
}
.pj-wl-stack i { display: block; flex: 0 0 auto; flex-basis: 0; }
.pj-wl-open { background: var(--pj-accent-tint); box-shadow: inset 0 0 0 1px #cfc6fb; }
.pj-wl-done { background: var(--color-success-green, #2e9e5b); }
.pj-wl-col.is-sub .pj-wl-done { background: #5fbf86; }
.pj-wl-kind { margin-top: 6px; font-size: 11px; color: var(--pj-ink-soft); }
.pj-wl-name { display: flex; flex-direction: column; align-items: center; margin-top: 4px; max-width: 110px; text-align: center; }