Update thumbnail, temporary set Length to null
This commit is contained in:
parent
39e568fc3c
commit
2008c607e0
1 changed files with 3 additions and 3 deletions
|
@ -23,7 +23,7 @@ const DateFormat = new Date(UploadDate * 1000).toLocaleDateString()
|
|||
|
||||
// Format Video Length
|
||||
// Thanks to "mingjunlu" for helping out with the time format
|
||||
const LengthFormat = new Date(Length * 1000).toISOString().slice(14, 19).split(':').map(Number).join(':')
|
||||
const LengthFormat = null
|
||||
|
||||
// Format Views
|
||||
const ViewsConversion = Intl.NumberFormat('en', { notation: 'compact'})
|
||||
|
@ -32,7 +32,7 @@ const ViewsFormat = ViewsConversion.format(Views)
|
|||
|
||||
<a href={'/watch?v=' + ID} class="video-item">
|
||||
<div class="video-item-thumbnail">
|
||||
<img src={DEFAULT_IMAGE_PROXY + '/https://i.ytimg.com/vi/' + ID + '/maxresdefault.jpg'}/>
|
||||
<img src={DEFAULT_IMAGE_PROXY + '/https://i.ytimg.com/vi/' + ID + '/hqdefault.jpg'}/>
|
||||
<p id="vi-length">{LengthFormat}</p>
|
||||
</div>
|
||||
<div class="video-item-details">
|
||||
|
@ -53,7 +53,7 @@ const ViewsFormat = ViewsConversion.format(Views)
|
|||
width: 100%;
|
||||
border-radius: 6px;
|
||||
aspect-ratio: 16/9;
|
||||
object-fit: contain;
|
||||
object-fit: cover;
|
||||
}
|
||||
p#vi-length {
|
||||
margin: -41px 0px 0px 0px;
|
||||
|
|
Reference in a new issue