Adjust related project pills in project info
This commit is contained in:
+62
-23
@@ -538,7 +538,7 @@
|
|||||||
|
|
||||||
.related-tag-stack {
|
.related-tag-stack {
|
||||||
display: grid;
|
display: grid;
|
||||||
gap: 10px;
|
gap: 8px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -551,52 +551,86 @@
|
|||||||
.related-project-tag {
|
.related-project-tag {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 8px;
|
gap: 4px;
|
||||||
border: 1px solid #d7e2eb;
|
min-width: 0;
|
||||||
background: #f7fbfe;
|
max-width: 100%;
|
||||||
color: #29485f;
|
border: 1px solid var(--line);
|
||||||
|
background: rgba(255, 255, 255, 0.96);
|
||||||
|
color: var(--ink);
|
||||||
border-radius: 999px;
|
border-radius: 999px;
|
||||||
min-height: 18px;
|
min-height: 10px;
|
||||||
padding: 1px 10px;
|
padding: 0 8px;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
line-height: 1.05;
|
line-height: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.related-project-tag.is-muted {
|
.related-project-tag.is-muted {
|
||||||
opacity: 0.72;
|
opacity: 0.72;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.related-project-main {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 4px;
|
||||||
|
min-width: 0;
|
||||||
|
flex: 1 1 auto;
|
||||||
|
}
|
||||||
|
|
||||||
.related-project-open {
|
.related-project-open {
|
||||||
border: 0;
|
border: 0;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
color: inherit;
|
color: inherit;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
font-weight: 800;
|
font-weight: 800;
|
||||||
line-height: 1.1;
|
line-height: 1;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
text-decoration: underline;
|
text-decoration: none;
|
||||||
text-underline-offset: 2px;
|
|
||||||
cursor: pointer;
|
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 .related-project-toggle,
|
||||||
.related-project-tag [data-remove-related] {
|
.related-project-tag [data-remove-related] {
|
||||||
width: 14px;
|
width: 12px;
|
||||||
height: 14px;
|
height: 12px;
|
||||||
min-width: 14px;
|
min-width: 12px;
|
||||||
min-height: 14px;
|
min-height: 12px;
|
||||||
max-width: 14px;
|
max-width: 12px;
|
||||||
max-height: 14px;
|
max-height: 12px;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
border-radius: 50%;
|
border-radius: 0;
|
||||||
aspect-ratio: 1 / 1;
|
aspect-ratio: 1 / 1;
|
||||||
border: 0;
|
border: 0;
|
||||||
background: rgba(41, 72, 95, 0.08);
|
background: transparent;
|
||||||
color: #29485f;
|
color: var(--muted);
|
||||||
box-shadow: none !important;
|
box-shadow: none !important;
|
||||||
transform: none !important;
|
transform: none !important;
|
||||||
font-size: 11px;
|
font-size: 10px;
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@@ -606,7 +640,8 @@
|
|||||||
.related-project-tag .related-project-toggle:hover,
|
.related-project-tag .related-project-toggle:hover,
|
||||||
.related-project-tag [data-remove-related]:hover {
|
.related-project-tag [data-remove-related]:hover {
|
||||||
transform: none;
|
transform: none;
|
||||||
background: rgba(41, 72, 95, 0.14);
|
background: transparent;
|
||||||
|
color: var(--ink);
|
||||||
}
|
}
|
||||||
|
|
||||||
.related-project-toggle {
|
.related-project-toggle {
|
||||||
@@ -7284,13 +7319,17 @@
|
|||||||
const isInactive = inactiveCodes.has(item.support_dept_code);
|
const isInactive = inactiveCodes.has(item.support_dept_code);
|
||||||
return `
|
return `
|
||||||
<span class="related-project-tag${isInactive ? " is-muted" : ""}">
|
<span class="related-project-tag${isInactive ? " is-muted" : ""}">
|
||||||
|
<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)}">
|
<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)}
|
${escapeHtml(item.support_dept_code)}
|
||||||
</button>
|
</button>
|
||||||
· ${escapeHtml(item.support_dept_name)}
|
<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" 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>
|
<button type="button" data-remove-related="${escapeHtml(item.support_dept_code)}" title="연관 프로젝트 제거" aria-label="연관 프로젝트 제거">×</button>
|
||||||
</span>
|
</span>
|
||||||
|
</span>
|
||||||
`;
|
`;
|
||||||
}).join("");
|
}).join("");
|
||||||
if (!tags) return "";
|
if (!tags) return "";
|
||||||
|
|||||||
Reference in New Issue
Block a user