Adjust related project pills in project info

This commit is contained in:
b17301
2026-04-30 09:35:47 +09:00
parent 9466f9a6ab
commit 37f422b493
+67 -28
View File
@@ -538,7 +538,7 @@
.related-tag-stack {
display: grid;
gap: 10px;
gap: 8px;
width: 100%;
}
@@ -551,52 +551,86 @@
.related-project-tag {
display: inline-flex;
align-items: center;
gap: 8px;
border: 1px solid #d7e2eb;
background: #f7fbfe;
color: #29485f;
gap: 4px;
min-width: 0;
max-width: 100%;
border: 1px solid var(--line);
background: rgba(255, 255, 255, 0.96);
color: var(--ink);
border-radius: 999px;
min-height: 18px;
padding: 1px 10px;
min-height: 10px;
padding: 0 8px;
font-size: 12px;
font-weight: 700;
line-height: 1.05;
line-height: 1;
}
.related-project-tag.is-muted {
opacity: 0.72;
}
.related-project-main {
display: inline-flex;
align-items: center;
gap: 4px;
min-width: 0;
flex: 1 1 auto;
}
.related-project-open {
border: 0;
background: transparent;
color: inherit;
font-size: 12px;
font-weight: 800;
line-height: 1.1;
line-height: 1;
padding: 0;
text-decoration: underline;
text-underline-offset: 2px;
text-decoration: none;
cursor: pointer;
box-shadow: none !important;
transform: none !important;
flex: 0 0 auto;
}
.related-project-open:hover {
color: inherit;
background: transparent;
text-decoration: none;
}
.related-project-name {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: #486072;
line-height: 1;
}
.related-project-actions {
display: inline-flex;
align-items: center;
gap: 4px;
flex: 0 0 auto;
}
.related-project-tag .related-project-toggle,
.related-project-tag [data-remove-related] {
width: 14px;
height: 14px;
min-width: 14px;
min-height: 14px;
max-width: 14px;
max-height: 14px;
width: 12px;
height: 12px;
min-width: 12px;
min-height: 12px;
max-width: 12px;
max-height: 12px;
padding: 0;
border-radius: 50%;
border-radius: 0;
aspect-ratio: 1 / 1;
border: 0;
background: rgba(41, 72, 95, 0.08);
color: #29485f;
background: transparent;
color: var(--muted);
box-shadow: none !important;
transform: none !important;
font-size: 11px;
font-size: 10px;
line-height: 1;
display: inline-flex;
align-items: center;
@@ -606,7 +640,8 @@
.related-project-tag .related-project-toggle:hover,
.related-project-tag [data-remove-related]:hover {
transform: none;
background: rgba(41, 72, 95, 0.14);
background: transparent;
color: var(--ink);
}
.related-project-toggle {
@@ -7284,12 +7319,16 @@
const isInactive = inactiveCodes.has(item.support_dept_code);
return `
<span class="related-project-tag${isInactive ? " is-muted" : ""}">
<button type="button" class="related-project-open" data-open-related-project="${escapeHtml(item.support_dept_code)}" title="${escapeHtml(item.support_dept_name)}">
${escapeHtml(item.support_dept_code)}
</button>
· ${escapeHtml(item.support_dept_name)}
<button type="button" class="related-project-toggle" data-toggle-related="${escapeHtml(item.support_dept_code)}" title="${isInactive ? "상세 반영 다시 켜기" : "상세 반영 끄기"}" aria-label="${isInactive ? "상세 반영 다시 켜기" : "상세 반영 끄기"}">${isInactive ? "+" : "-"}</button>
<button type="button" data-remove-related="${escapeHtml(item.support_dept_code)}" title="연관 프로젝트 제거" aria-label="연관 프로젝트 제거">×</button>
<span class="related-project-main">
<button type="button" class="related-project-open" data-open-related-project="${escapeHtml(item.support_dept_code)}" title="${escapeHtml(item.support_dept_name)}">
${escapeHtml(item.support_dept_code)}
</button>
<span class="related-project-name">${escapeHtml(item.support_dept_name)}</span>
</span>
<span class="related-project-actions">
<button type="button" class="related-project-toggle" data-toggle-related="${escapeHtml(item.support_dept_code)}" title="${isInactive ? "상세 반영 다시 켜기" : "상세 반영 끄기"}" aria-label="${isInactive ? "상세 반영 다시 켜기" : "상세 반영 끄기"}">${isInactive ? "+" : "-"}</button>
<button type="button" data-remove-related="${escapeHtml(item.support_dept_code)}" title="연관 프로젝트 제거" aria-label="연관 프로젝트 제거">×</button>
</span>
</span>
`;
}).join("");