💄 Update polls table

This commit is contained in:
Luke Vella 2024-06-09 17:37:05 +01:00
parent 3d9dd6ca98
commit 422a5abfe7

View file

@ -44,22 +44,18 @@ export const usePollColumns = () => {
columnHelper.accessor("title", { columnHelper.accessor("title", {
id: "title", id: "title",
header: t("title"), header: t("title"),
size: 1000, size: 250,
cell: ({ row }) => { cell: ({ row }) => {
return ( return (
<div>
<Link <Link
href={`/invite/${row.original.id}`} href={`/invite/${row.original.id}`}
className="focus:text-primary group absolute inset-0 flex items-center gap-x-2.5 px-4 group-hover:underline" className="focus:text-primary group inset-0 flex h-9 min-w-0 items-center gap-x-2.5 whitespace-nowrap rounded-md px-2.5 text-sm font-medium hover:underline focus:bg-gray-200"
> >
<span className="flex items-center gap-x-2.5 truncate whitespace-nowrap text-sm font-medium group-hover:underline">
<Icon> <Icon>
<BarChart2Icon /> <BarChart2Icon />
</Icon> </Icon>
{row.original.title} <span className="min-w-0 truncate">{row.original.title}</span>
</span>
</Link> </Link>
</div>
); );
}, },
}), }),