1
0
mirror of https://git.sr.ht/~cadence/cloudtube synced 2024-11-12 19:37:29 +00:00

Design error for if streams are not available

This commit is contained in:
Cadence Ember 2020-09-24 15:55:13 +12:00
parent 83dec0c7ab
commit 247f2ec664
No known key found for this signature in database
GPG Key ID: BC1C2C61CF521B17
2 changed files with 10 additions and 2 deletions

View File

@ -20,8 +20,12 @@ block content
.main-video-section
.video-container
- const format = sortedFormatStreams[0]
video(controls preload="auto" width=format.second__width height=format.second__height data-itag=format.itag)#video.video
source(src=format.url type=format.type)
if format
video(controls preload="auto" width=format.second__width height=format.second__height data-itag=format.itag)#video.video
source(src=format.url type=format.type)
else
video(src="")#video.video
.stream-notice The server provided no playback streams.
#current-time-container
#end-cards-container

View File

@ -20,6 +20,10 @@
height: auto
max-height: 80vh
.stream-notice
background: c.$bg-darkest
padding: 4px
.info
display: flex
margin: 8px 4px 16px