mirror of
https://git.sr.ht/~cadence/cloudtube
synced 2026-03-02 02:31:35 +00:00
Rework thumbnails to make future changes possible
This commit is contained in:
parent
7caa4fb435
commit
1982ebf9e4
2 changed files with 7 additions and 2 deletions
|
|
@ -3,8 +3,9 @@ mixin video_list_item(className, video, instanceOrigin, options = {})
|
|||
- let link = `/watch?v=${video.videoId}`
|
||||
if options.continuous
|
||||
- link += `&continuous=1&session-watched=${sessionWatchedNext}`
|
||||
a(href=link tabindex="-1").thumbnail
|
||||
img(src=`/vi/${video.videoId}/mqdefault.jpg` width=320 height=180 alt="").image
|
||||
div.thumbnail
|
||||
a(href=link tabindex="-1").thumbnail__link
|
||||
img(src=`/vi/${video.videoId}/mqdefault.jpg` width=320 height=180 alt="").image
|
||||
if video.second__lengthText != undefined
|
||||
span.duration= video.second__lengthText
|
||||
.info
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue