change link preview cpn

This commit is contained in:
oiov
2025-05-19 21:43:20 +08:00
parent 87c24da5a0
commit e0163351aa
2 changed files with 7 additions and 8 deletions
@@ -39,7 +39,10 @@ import {
import { FormType, RecordForm } from "@/components/forms/record-form";
import { EmptyPlaceholder } from "@/components/shared/empty-placeholder";
import { Icons } from "@/components/shared/icons";
import { LinkPreviewer } from "@/components/shared/link-previewer";
import {
LinkInfoPreviewer,
LinkPreviewer,
} from "@/components/shared/link-previewer";
import { PaginationWrapper } from "@/components/shared/pagination";
export interface RecordListProps {
@@ -238,14 +241,10 @@ export default function UserRecordsList({ user, action }: RecordListProps) {
</Badge>
</TableCell>
<TableCell className="col-span-1">
<LinkPreviewer
<LinkInfoPreviewer
apiKey={user.apiKey ?? ""}
url={"https://" + record.name}
formatUrl={
"https://" + record.name.endsWith(".wr.do")
? record.name.slice(0, -6)
: record.name
}
formatUrl={record.name}
/>
</TableCell>
<TableCell className="col-span-2 hidden truncate text-nowrap sm:inline-block">
+1 -1
View File
File diff suppressed because one or more lines are too long