调整博客、资源表格,允许任意位置换行

This commit is contained in:
2025-06-10 15:37:56 +08:00
parent af39e65094
commit 03d681b5d3
2 changed files with 7 additions and 7 deletions

View File

@@ -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>

View File

@@ -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) => (