调整博客、资源表格,允许任意位置换行
This commit is contained in:
@@ -51,9 +51,9 @@ export default function BlogTable({ blogs, error, onRefresh }: BlogTableProps) {
|
||||
</Tooltip>
|
||||
</TooltipProvider>
|
||||
</TableCell>
|
||||
<TableCell className="whitespace-normal break-words">{blog.title}</TableCell>
|
||||
<TableCell className="whitespace-normal break-words">{blog.description}</TableCell>
|
||||
<TableCell className="whitespace-normal break-words">{blog.contentUrl}</TableCell>
|
||||
<TableCell className="whitespace-normal break-all">{blog.title}</TableCell>
|
||||
<TableCell className="whitespace-normal break-all">{blog.description}</TableCell>
|
||||
<TableCell className="whitespace-normal break-all">{blog.contentUrl}</TableCell>
|
||||
<TableCell className="text-right">
|
||||
<BlogEdit id={blog.id} onRefresh={() => onRefresh()}>
|
||||
<Button variant={'outline'} size={'sm'}>编辑</Button>
|
||||
|
||||
@@ -52,10 +52,10 @@ export default function ResourceTable({ resources, errorMessage, onRefresh }: Re
|
||||
</Tooltip>
|
||||
</TooltipProvider>
|
||||
</TableCell>
|
||||
<TableCell>{resource.title}</TableCell>
|
||||
<TableCell className="whitespace-normal break-words">{resource.description}</TableCell>
|
||||
<TableCell className="whitespace-normal break-words">{resource.imageUrl}</TableCell>
|
||||
<TableCell className="whitespace-normal break-words">{resource.link}</TableCell>
|
||||
<TableCell className="whitespace-normal break-all">{resource.title}</TableCell>
|
||||
<TableCell className="whitespace-normal break-all">{resource.description}</TableCell>
|
||||
<TableCell className="whitespace-normal break-all">{resource.imageUrl}</TableCell>
|
||||
<TableCell className="whitespace-normal break-all">{resource.link}</TableCell>
|
||||
<TableCell>
|
||||
<div className="flex flex-wrap gap-1">
|
||||
{resource.tags.map((tag, index) => (
|
||||
|
||||
Reference in New Issue
Block a user