From 11d9cf607377d619e4dfc9dfb5a11f394ee62e04 Mon Sep 17 00:00:00 2001 From: nklhrstv Date: Sat, 28 Mar 2020 22:29:34 +0200 Subject: [PATCH] filter landscape poster shapes from continue watching preview --- src/routes/Board/useContinueWatchingPreview.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/Board/useContinueWatchingPreview.js b/src/routes/Board/useContinueWatchingPreview.js index 33756a4a7..cebe44b20 100644 --- a/src/routes/Board/useContinueWatchingPreview.js +++ b/src/routes/Board/useContinueWatchingPreview.js @@ -8,7 +8,7 @@ const mapContinueWatchingPreviewState = (continue_watching_preview) => { type: lib_item.type, name: lib_item.name, poster: lib_item.poster, - posterShape: lib_item.posterShape, + posterShape: lib_item.posterShape === 'landscape' ? 'square' : lib_item.posterShape, videoId: lib_item.state.video_id, progress: lib_item.state.timeOffset > 0 && lib_item.state.duration > 0 ? lib_item.state.timeOffset / lib_item.state.duration