优化资源图片质量、添加tagId
This commit is contained in:
@@ -24,7 +24,7 @@ export function ResourceCard({ r, ...props }: ResourceCardProps) {
|
|||||||
height={90}
|
height={90}
|
||||||
className="rounded-md shadow"
|
className="rounded-md shadow"
|
||||||
priority
|
priority
|
||||||
quality={100}
|
quality={80}
|
||||||
onError={() => setImageError(true)}
|
onError={() => setImageError(true)}
|
||||||
/>}
|
/>}
|
||||||
</div>
|
</div>
|
||||||
@@ -34,7 +34,7 @@ export function ResourceCard({ r, ...props }: ResourceCardProps) {
|
|||||||
<div className="flex gap-2 flex-wrap mt-4">
|
<div className="flex gap-2 flex-wrap mt-4">
|
||||||
{
|
{
|
||||||
r.tags.map((tag) => (
|
r.tags.map((tag) => (
|
||||||
<ResourceBadge tag={tag} />
|
<ResourceBadge key={tag.name} tag={tag} />
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user