Improve video titles to prevent overflow and ensure consistent display
Update the VideoCard component to use the `truncate` class for video titles, ensuring they do not overflow and maintain a consistent display. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 074b0e4c-6171-43bd-aa98-f9e04623ca14 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/8cc42625-c1f5-4e43-99bd-77f2c4dedee2/074b0e4c-6171-43bd-aa98-f9e04623ca14/iazasnP
This commit is contained in:
parent
bfd769bb4b
commit
a947c01320
@ -214,7 +214,7 @@ export default function VideoCard({ video, onClick, className = "" }: VideoCardP
|
||||
|
||||
<div className="space-y-2">
|
||||
<h3
|
||||
className="font-semibold line-clamp-1 hover:text-bunny-blue transition-colors text-bunny-light cursor-pointer text-sm"
|
||||
className="font-semibold line-clamp-1 hover:text-bunny-blue transition-colors text-bunny-light cursor-pointer text-sm truncate"
|
||||
onClick={() => onClick?.(video)}
|
||||
data-testid={`text-title-${video.id}`}
|
||||
>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user