Skip to content

Commit

Permalink
Merge pull request #3618 from thornbill/fix-backdrop-mobile
Browse files Browse the repository at this point in the history
Fix backdrop being used on large screens in mobile layout

(cherry picked from commit f2c27dc)
Signed-off-by: Joshua Boniface <joshua@boniface.me>
  • Loading branch information
thornbill authored and joshuaboniface committed May 21, 2022
1 parent 0794f19 commit b4ae4e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/controllers/itemDetails/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit b4ae4e4

Please sign in to comment.