fix(upload): prevent video card overflow

This commit is contained in:
2026-08-02 17:02:46 +07:00 Unverified
parent 974a38cdf3
commit ac3f318973
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ export function LatestCard({
<PlaySquare className="absolute inset-0 m-auto text-muted-foreground" /> <PlaySquare className="absolute inset-0 m-auto text-muted-foreground" />
)} )}
</div> </div>
<span className="min-w-0 text-sm font-medium leading-snug group-hover:underline"> <span className="line-clamp-4 min-w-0 break-words text-sm font-medium leading-snug group-hover:underline">
{video.title} {video.title}
</span> </span>
<ExternalLink className="mt-0.5 shrink-0 text-muted-foreground" /> <ExternalLink className="mt-0.5 shrink-0 text-muted-foreground" />
+1 -1
View File
@@ -13,7 +13,7 @@ export default async function AdminUploadVideoPage() {
]); ]);
return ( return (
<section className="grid gap-4 xl:grid-cols-2"> <section className="grid gap-4">
<LatestCard title="Latest YouTube videos" videos={youtube} /> <LatestCard title="Latest YouTube videos" videos={youtube} />
<LatestCard title="Latest TikTok videos" videos={tiktok} /> <LatestCard title="Latest TikTok videos" videos={tiktok} />
</section> </section>