@@ -322,123 +343,146 @@ function submit(): void {
color: var(--text-3);
}
-/* 참석자 멀티셀렉트 */
-.ms {
+/* 참석자 — 업무 생성의 담당자 등록과 동일한 콤보(검색 입력 + 후보 드롭다운 + 선택 칩) */
+.combo {
position: relative;
}
-.ms-field {
+.combo-field {
display: flex;
+ flex-wrap: wrap;
align-items: center;
- gap: 0.5rem;
- width: 100%;
- height: 2.5rem;
- padding: 0 0.625rem 0 0.75rem;
+ gap: 0.375rem;
+ padding: 0.4375rem 0.5rem;
border: 1px solid var(--border-strong);
border-radius: var(--radius);
background: #fff;
- font-family: inherit;
- font-size: 0.844rem;
- color: var(--text);
- cursor: pointer;
- text-align: left;
}
-.ms-field.empty .ms-val {
- color: var(--text-3);
-}
-.ms-field.open {
+.combo-field:focus-within {
border-color: var(--accent);
box-shadow: 0 0 0 3px var(--accent-weak);
}
-.ms-field .ms-val {
+.combo-input {
flex: 1;
- min-width: 0;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
+ min-width: 4.375rem;
+ border: none;
+ outline: none;
+ font-family: inherit;
+ font-size: 0.8125rem;
+ padding: 0.25rem 0.125rem;
+ background: transparent;
+ color: var(--text);
}
-.ms-field .chev {
- display: grid;
+.combo-input::placeholder {
color: var(--text-3);
}
-.ms-field .chev svg {
- width: 0.9375rem;
- height: 0.9375rem;
+.combo-caret {
+ color: var(--text-3);
+ display: grid;
+ place-items: center;
+ margin-left: auto;
+ flex-shrink: 0;
}
-.ms-panel {
+.combo-caret svg {
+ width: 1rem;
+ height: 1rem;
+}
+.assignee-dd {
position: absolute;
top: calc(100% + 0.375rem);
left: 0;
right: 0;
z-index: 10;
- max-height: 13.75rem;
- overflow-y: auto;
background: #fff;
border: 1px solid var(--border);
border-radius: 0.5625rem;
box-shadow: var(--shadow-pop);
padding: 0.375rem;
+ max-height: 14rem;
+ overflow-y: auto;
}
-.ms-item {
+.assignee-dd-item {
display: flex;
align-items: center;
gap: 0.5rem;
width: 100%;
- border: none;
- background: none;
- font-family: inherit;
- font-size: 0.8125rem;
- font-weight: 600;
- color: var(--text-2);
padding: 0.4375rem 0.5rem;
+ border: none;
+ background: transparent;
border-radius: var(--radius-sm);
cursor: pointer;
+ font-family: inherit;
text-align: left;
}
-.ms-item:hover {
+.assignee-dd-item:hover {
background: #f5f6f8;
}
-.ms-item.on {
- color: var(--text);
+.assignee-dd-item .avatar {
+ width: 1.5rem;
+ height: 1.5rem;
+ flex-shrink: 0;
}
-.ms-item .ms-name {
- flex: 1;
- min-width: 0;
- overflow: hidden;
- text-overflow: ellipsis;
+.ad-nm {
+ font-size: 0.8125rem;
+ font-weight: 600;
+ color: var(--text);
white-space: nowrap;
}
-.ms-item .ms-check {
+.assignee-dd-msg {
+ padding: 0.625rem 0.5rem;
+ font-size: 0.75rem;
+ color: var(--text-3);
+ text-align: center;
+}
+.assignee-chips {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 0.375rem;
+ margin-top: 0.5rem;
+}
+.chip {
+ display: inline-flex;
+ align-items: center;
+ gap: 0.375rem;
+ background: #f1f2f4;
+ border: 1px solid var(--border);
+ border-radius: 20px;
+ padding: 0.1875rem 0.5rem 0.1875rem 0.1875rem;
+ font-size: 0.781rem;
+ font-weight: 600;
+ color: var(--text);
+ white-space: nowrap;
+}
+.chip .avatar {
+ width: 1.375rem;
+ height: 1.375rem;
flex-shrink: 0;
- color: var(--accent);
- display: grid;
- place-items: center;
}
-.ms-item .ms-check svg {
- width: 0.9375rem;
- height: 0.9375rem;
+.chip .x {
+ color: var(--text-3);
+ cursor: pointer;
+ font-size: 0.8125rem;
+ line-height: 1;
+ margin-left: 0.0625rem;
}
-.ms-all {
- /* 참석자 아바타(ScheduleAvatar :size="20" = 1.25rem)와 동일 크기 */
- width: 1.25rem;
- height: 1.25rem;
+.chip .x:hover {
+ color: var(--red);
+}
+/* 전 직원 표식(드롭다운/칩 공용) */
+.ad-all {
+ width: 1.5rem;
+ height: 1.5rem;
border-radius: 50%;
display: grid;
place-items: center;
- font-size: 0.5625rem;
+ font-size: 0.6875rem;
font-weight: 700;
color: #fff;
background: #9298a3;
flex-shrink: 0;
}
-.ms-div {
- height: 0.0625rem;
- background: var(--border);
- margin: 0.25rem 0.125rem;
-}
-.ms-empty {
- padding: 0.75rem 0.5rem;
- font-size: 0.781rem;
- color: var(--text-3);
- text-align: center;
+.ad-all.sm {
+ width: 1.375rem;
+ height: 1.375rem;
+ font-size: 0.625rem;
}
diff --git a/frontend/src/pages/relay/TaskDetailPage.vue b/frontend/src/pages/relay/TaskDetailPage.vue
index 1511035..d8f414f 100644
--- a/frontend/src/pages/relay/TaskDetailPage.vue
+++ b/frontend/src/pages/relay/TaskDetailPage.vue
@@ -29,6 +29,7 @@ import { useTaskStore } from '@/stores/task.store'
import { useAuthStore } from '@/stores/auth.store'
import { useDialog } from '@/composables/useDialog'
import UserAvatar from '@/components/UserAvatar.vue'
+import AvatarStack from '@/components/common/AvatarStack.vue'
import StatusSelect from '@/components/StatusSelect.vue'
import { attachmentKindOf, fileBadge } from '@/shared/utils/format'
import {
@@ -182,6 +183,15 @@ const assigneeNames = computed(() => {
if (names.length === 1) return names[0]
return `${names[0]} 외 ${names.length - 1}명`
})
+// 담당자 아바타 스택용 — 팝오버에 역할(role)을 보조문구로 표시
+const assigneeStack = computed(() =>
+ (task.value?.assignees ?? []).map((a) => ({
+ id: a.id,
+ name: a.name,
+ avatarUrl: a.avatarUrl,
+ sub: a.role,
+ })),
+)
// 수정 요청 모달 열기 — 모든 항목을 '완료'로 초기화(담당자가 완료를 주장하며 요청)
function openChanges() {
const checks: Record
= {}
@@ -1204,18 +1214,15 @@ function badgeFor(name: string | undefined): { label: string; cls: string } {
담당자 · {{ task.assignees.length }}명
-
-
-
-
{{ a.name }}
{{ a.role }}
-
+
+
+ 지정된 담당자가 없습니다.
@@ -3154,30 +3161,9 @@ function badgeFor(name: string | undefined): { label: string; cls: string } {
.status-badge.done .dot {
background: var(--green);
}
-.assignees {
- display: flex;
- flex-direction: column;
- gap: 0.5625rem;
-}
-.ass {
- display: flex;
- align-items: center;
- gap: 0.5625rem;
-}
-.ass .avatar {
- width: 1.625rem;
- height: 1.625rem;
- font-size: 0.6875rem;
-}
-.ass .nm {
+.ass-empty {
font-size: 0.8125rem;
- font-weight: 600;
- white-space: nowrap;
-}
-.ass .rl {
- font-size: 0.719rem;
color: var(--text-3);
- white-space: nowrap;
}
.dl {
display: flex;