1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Merge pull request #3618 from thornbill/fix-backdrop-mobile

Fix backdrop being used on large screens in mobile layout

(cherry picked from commit f2c27dc1b5)
Signed-off-by: Joshua Boniface <joshua@boniface.me>
This commit is contained in:
Bill Thornton 2022-05-05 16:01:34 -04:00 committed by Joshua Boniface
parent 0794f19f94
commit b4ae4e44b9

View file

@ -515,8 +515,8 @@ function setTrailerButtonVisibility(page, item) {
}
function renderBackdrop(item) {
if (dom.getWindowSize().innerWidth >= 1000) {
setBackdrops([item]);
if (!layoutManager.mobile && dom.getWindowSize().innerWidth >= 1000) {
backdrop.setBackdrops([item]);
} else {
clearBackdrop();
}