use Avatar in table for assignee

This commit is contained in:
Oliver Bryan
2025-12-23 17:11:05 +00:00
parent d46b82ffa6
commit e9c5fbac0a

View File

@@ -1,4 +1,5 @@
import type { IssueResponse, ProjectResponse } from "@issue/shared"; import type { IssueResponse, ProjectResponse } from "@issue/shared";
import Avatar from "@/components/avatar";
import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "@/components/ui/table"; import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "@/components/ui/table";
import { cn } from "@/lib/utils"; import { cn } from "@/lib/utils";
@@ -51,7 +52,9 @@ export function IssuesTable({
<TableCell className="overflow-hide">{issueData.Issue.description}</TableCell> <TableCell className="overflow-hide">{issueData.Issue.description}</TableCell>
)} )}
{(columns.assignee == null || columns.assignee === true) && ( {(columns.assignee == null || columns.assignee === true) && (
<TableCell className={"text-right"}>{issueData.User?.id || "?"}</TableCell> <TableCell className={"w-[0px] text-center px-1 py-0"}>
{issueData.User ? <Avatar user={issueData.User} size={6} /> : "?"}
</TableCell>
)} )}
</TableRow> </TableRow>
))} ))}