This commit is contained in:
parent
87ff7b5027
commit
b98beff824
1 changed files with 2 additions and 2 deletions
|
@ -177,7 +177,7 @@ pub async fn video_element(video: &mut Video) -> PreEscaped<String> {
|
|||
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<String> {
|
|||
|
||||
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 )
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue