diff --git a/src/pages/components.rs b/src/pages/components.rs index b3dfda8..4a4ffc1 100644 --- a/src/pages/components.rs +++ b/src/pages/components.rs @@ -177,7 +177,7 @@ pub async fn video_element(video: &mut Video) -> PreEscaped { a href=(format!("/watch?v={}", video.id)) class="max-w-sm mx-auto p-4 max-h-60 aspect-video" { div class="bg-gray-900 shadow-lg rounded-lg overflow-hidden" { div class="relative" { - img width="480" src=(format!("/video/thumbnail?v={}", video.id)) alt="Video Thumbnail" class="w-full h-auto object-cover aspect-video"; + img width="480" src=(format!("/video/thumbnail?v={}", video.id)) class="w-full h-auto object-cover aspect-video"; span class="absolute bottom-2 right-2 bg-black text-white text-xs px-2 py-1 rounded-sm opacity-90" { (( format_seconds_to_hhmmss(video.duration) )) }; @@ -185,7 +185,7 @@ pub async fn video_element(video: &mut Video) -> PreEscaped { div class="bg-gray-900 shadow-lg rounded-lg overflow-hidden" { div class="p-4" { - h3 class="text-lg font-semibold truncate" { + h3 class="text-lg font-semibold truncate" title=(video.title) { ( video.title ) }; };