BLOG-70 feat: add title on <a>
All checks were successful
Frontend CI / build (push) Successful in 1m7s
PR Title Check / pr-title-check (pull_request) Successful in 17s

This commit is contained in:
SquidSpirit 2025-07-26 01:25:01 +08:00
parent ff2b86358d
commit ec4d65bc12

View File

@ -17,7 +17,7 @@
}
</script>
<a class="flex cursor-pointer flex-col gap-y-6" href="/post/{postInfo.id}">
<a class="flex cursor-pointer flex-col gap-y-6" href="/post/{postInfo.id}" title={postInfo.title}>
<div class="relative aspect-video overflow-hidden rounded-2xl bg-gray-200">
<img
class="rounded-2xl object-cover transition-opacity duration-300
@ -34,8 +34,8 @@
</div>
<div class="flex flex-col gap-y-2.5">
<PostPreviewLabels labels={postInfo.labels} />
<span class="line-clamp-1 text-lg font-bold">{postInfo.title}</span>
<span class="line-clamp-3 text-justify text-sm">{postInfo.description}</span>
<h2 class="line-clamp-1 text-lg font-bold">{postInfo.title}</h2>
<p class="line-clamp-3 text-justify text-sm">{postInfo.description}</p>
<span class="text-sm text-gray-500">{postInfo.formattedPublishedTime}</span>
</div>
</a>