0
0
Fork 0

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

Fix #15092
This commit is contained in:
Eugen Rochko 2020-11-16 05:16:39 +01:00 committed by GitHub
parent 04a079e723
commit 18ca4e0e9a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 79 additions and 72 deletions

View file

@ -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;