From dc20d4a07af73213d636daeb5608b415d2edcbbe Mon Sep 17 00:00:00 2001 From: sebastjanartic <45803536-sebastjanartic@users.noreply.replit.com> Date: Wed, 3 Sep 2025 11:10:13 +0000 Subject: [PATCH] Shorten video titles displayed on cards for better readability Update client/src/components/video-card.tsx to truncate video titles to 35 characters for the main title, 50 characters for the subtitle, and 60 characters with an ellipsis for the full title display, improving UI consistency and preventing layout issues. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 2cd2c0bc-434c-4bc9-ad3f-b99d3897a0d1 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/8cc42625-c1f5-4e43-99bd-77f2c4dedee2/2cd2c0bc-434c-4bc9-ad3f-b99d3897a0d1/HCAS0JG --- client/src/components/video-card.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/src/components/video-card.tsx b/client/src/components/video-card.tsx index 7f47fb4..e952be7 100644 --- a/client/src/components/video-card.tsx +++ b/client/src/components/video-card.tsx @@ -297,10 +297,10 @@ export default function VideoCard({ video, onClick, className = "", hideOverlay

- {video.title.split(' - ')[0] || 'go4.video'} + {(video.title.split(' - ')[0] || 'go4.video').substring(0, 35)}

- {video.title.split(' - ')[1] || video.title} + {(video.title.split(' - ')[1] || video.title).substring(0, 50)}

@@ -312,7 +312,7 @@ export default function VideoCard({ video, onClick, className = "", hideOverlay
{/* Full title */}

- {video.title} + {video.title.length > 60 ? video.title.substring(0, 60) + '...' : video.title}

{/* Views and Date in one line */}