mirror of
https://github.com/hex248/sprint.git
synced 2026-02-08 02:33:01 +00:00
display all assignees
This commit is contained in:
@@ -64,13 +64,24 @@ export function IssuesTable({
|
|||||||
)}
|
)}
|
||||||
{(columns.assignee == null || columns.assignee === true) && (
|
{(columns.assignee == null || columns.assignee === true) && (
|
||||||
<TableCell className={"flex items-center justify-end px-1 py-0 h-[32px]"}>
|
<TableCell className={"flex items-center justify-end px-1 py-0 h-[32px]"}>
|
||||||
{issueData.Assignee && (
|
{issueData.Assignees && issueData.Assignees.length > 0 && (
|
||||||
|
<div className="flex items-center -space-x-2">
|
||||||
|
{issueData.Assignees.slice(0, 3).map((assignee) => (
|
||||||
<Avatar
|
<Avatar
|
||||||
name={issueData.Assignee?.name}
|
key={assignee.id}
|
||||||
username={issueData.Assignee?.username}
|
name={assignee.name}
|
||||||
avatarURL={issueData.Assignee?.avatarURL}
|
username={assignee.username}
|
||||||
|
avatarURL={assignee.avatarURL}
|
||||||
textClass="text-xs"
|
textClass="text-xs"
|
||||||
|
className="ring-2 ring-background"
|
||||||
/>
|
/>
|
||||||
|
))}
|
||||||
|
{issueData.Assignees.length > 3 && (
|
||||||
|
<span className="flex items-center justify-center w-6 h-6 text-[10px] font-medium bg-muted text-muted-foreground rounded-full ring-2 ring-background">
|
||||||
|
+{issueData.Assignees.length - 3}
|
||||||
|
</span>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
)}
|
)}
|
||||||
</TableCell>
|
</TableCell>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user