fix(project): 세션 헤더 색상 배경 40% 투명하게
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
+13
-1
@@ -145,6 +145,18 @@
|
||||
return move;
|
||||
}
|
||||
|
||||
// "#RRGGBB" → "rgba(r,g,b,alpha)" — 세션 헤더 배경처럼 색은 유지한 채
|
||||
// 투명도만 입혀야 할 때 쓴다.
|
||||
function hexToRgba(hex, alpha) {
|
||||
const h = String(hex || "").replace("#", "");
|
||||
const full = h.length === 3 ? h.split("").map(function (c) { return c + c; }).join("") : h;
|
||||
const r = parseInt(full.substr(0, 2), 16);
|
||||
const g = parseInt(full.substr(2, 2), 16);
|
||||
const b = parseInt(full.substr(4, 2), 16);
|
||||
if (isNaN(r) || isNaN(g) || isNaN(b)) return hex;
|
||||
return "rgba(" + r + "," + g + "," + b + "," + alpha + ")";
|
||||
}
|
||||
|
||||
// 멤버 선택 후보 카드(아이콘 위 / 이름 가운데 / 체크박스 아래) — 새 프로젝트
|
||||
// 모달(홈·프로젝트 페이지)과 멤버 배정 모달 3곳이 전부 이 함수 하나를 쓴다.
|
||||
// /api/assignable-users 응답의 avatar 필드를 그대로 쓰므로 페이지별
|
||||
@@ -2136,7 +2148,7 @@
|
||||
col.innerHTML =
|
||||
'<div class="pj-col-head' + (s.color ? " pj-col-head-colored" : "") + '"' +
|
||||
(canManage ? ' draggable="true"' : "") +
|
||||
(s.color ? ' style="background:' + s.color + '"' : "") + '>' +
|
||||
(s.color ? ' style="background:' + hexToRgba(s.color, 0.6) + '"' : "") + '>' +
|
||||
'<span class="pj-col-name">' + escapeHtml(s.name) + "</span>" +
|
||||
(s.is_done_stage ? '<span class="pj-chip pj-chip-sm">완료</span>' : "") +
|
||||
'<span class="pj-col-count"></span>' +
|
||||
|
||||
Reference in New Issue
Block a user