Fix pop-out player appearing on mobile screens in web UI (#15157)

Fix #15092
This commit is contained in:
Eugen Rochko authored and GitHub committed 2020-11-16 05:16:39 +01:00
1 parent 04a079e723
commit 18ca4e0e9a
6 files changed
+79 -72

No files matched your search

@@ -57,7 +57,11 @@ const makeMapStateToProps = () => {
const mapStateToProps = (state, props) => ({
status: getStatus(state, props),
usingPiP: state.get('picture_in_picture').statusId === props.id,
pictureInPicture: {
inUse: state.getIn(['meta', 'layout']) !== 'mobile' && state.get('picture_in_picture').statusId === props.id,
available: state.getIn(['meta', 'layout']) !== 'mobile',
},
});
return mapStateToProps;