diff --git a/src/components/SitesTable.tsx b/src/components/SitesTable.tsx index 57e9ea8a9..f75184a00 100644 --- a/src/components/SitesTable.tsx +++ b/src/components/SitesTable.tsx @@ -469,7 +469,11 @@ export default function SitesTable({ // The label feature should be added to the tiers { accessorKey: "labels", - header: () => {t("labels")}, + header: () => ( + + {t("labels")} + + ), cell: ({ row }) => { return ; } @@ -679,6 +683,8 @@ function SiteLabelCell({ site, orgId }: SiteLabelCellProps) { const api = createApiClient(useEnvContext()); + const [isPopoverOpen, setIsPopoverOpen] = useState(false); + const router = useRouter(); const labels = site.labels ?? []; @@ -722,7 +728,7 @@ function SiteLabelCell({ site, orgId }: SiteLabelCellProps) { return (
- {optimisticLabels.map((label) => ( + {optimisticLabels.slice(0, 3).map((label) => ( ))} - + {optimisticLabels.length > 3 && ( + + )} +