From 247f2ec6647be6ead8196231920e0d513cbc34f1 Mon Sep 17 00:00:00 2001 From: Cadence Ember Date: Thu, 24 Sep 2020 15:55:13 +1200 Subject: [PATCH] Design error for if streams are not available --- pug/video.pug | 8 ++++++-- sass/includes/video-page.sass | 4 ++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/pug/video.pug b/pug/video.pug index cfe4a4f..8555b20 100644 --- a/pug/video.pug +++ b/pug/video.pug @@ -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 diff --git a/sass/includes/video-page.sass b/sass/includes/video-page.sass index fd552eb..c93c7e8 100644 --- a/sass/includes/video-page.sass +++ b/sass/includes/video-page.sass @@ -20,6 +20,10 @@ height: auto max-height: 80vh + .stream-notice + background: c.$bg-darkest + padding: 4px + .info display: flex margin: 8px 4px 16px