fix ui
All checks were successful
ci/woodpecker/push/build Pipeline was successful

This commit is contained in:
JMARyA 2024-12-15 21:20:50 +01:00
parent 87ff7b5027
commit b98beff824
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263

View file

@ -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 )
};
};