Updated lib

This commit is contained in:
2025-06-26 23:27:06 +02:00
parent 3bd9a73760
commit 6a8b2b9e2e
2 changed files with 9 additions and 2 deletions

View File

@@ -29,6 +29,7 @@ import { Input } from "@/components/ui/input"
import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "@/components/ui/table"
import { deleteUrl } from "@/lib/actions/url"
import { urls } from "@/lib/drizzle/schema"
import Link from "next/link"
import { useRouter } from "next/navigation"
import { toast } from "sonner"
@@ -67,7 +68,9 @@ export const columns: ColumnDef<UrlRecord>[] = [
const url = row.getValue("url") as string
return (
<div className="max-w-[300px] truncate" title={url}>
{url}
<Link href={url}>
{url.replace(/^(https?:\/\/)/, "")}
</Link>
</div>
)
}