代码修改

This commit is contained in:
董宏凯 committed 2026-06-12 20:27:34 +08:00
1 parent 3f2aef2925
commit 865a0bfaf6
2 files changed
+19 -7

No files matched your search

@@ -2422,6 +2422,7 @@ function RoleAvatarBadge({
onSelect?: () => void;
}) {
const isOngoing = role.status === "研讨中";
const isDone = role.status === "已完成";
const animate = showSpeakingAnimation && isOngoing;
const clickable = Boolean(onSelect);
@@ -2439,6 +2440,12 @@ function RoleAvatarBadge({
<div className={cn("relative rounded-full", animate && "animate-pulse")}>
{renderRoleAvatar(role, agentNameToRole, size)}
</div>
{/* 收起态:输出完成的席位在头像右下角叠加「已完成」勾选角标。 */}
{isDone && (
<span className="pointer-events-none absolute -bottom-0.5 -right-0.5 flex h-3.5 w-3.5 items-center justify-center rounded-full bg-emerald-500 ring-2 ring-white">
<Check className="h-2.5 w-2.5 text-white" strokeWidth={3} />
</span>
)}
</div>
);