diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2020-11-16 05:16:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-16 05:16:39 +0100 |
commit | 18ca4e0e9a3f74a6f21d329882b429f8f5227b0f (patch) | |
tree | d33d0d97a61e06b266874e9f1bdf597c78d7001b /app/javascript/mastodon/containers/status_container.js | |
parent | 04a079e7230bc4e73b897e3c4462011cddf36474 (diff) |
Fix pop-out player appearing on mobile screens in web UI (#15157)
Fix #15092
Diffstat (limited to 'app/javascript/mastodon/containers/status_container.js')
-rw-r--r-- | app/javascript/mastodon/containers/status_container.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/javascript/mastodon/containers/status_container.js b/app/javascript/mastodon/containers/status_container.js index 7bfd66d3e..fe81981a7 100644 --- a/app/javascript/mastodon/containers/status_container.js +++ b/app/javascript/mastodon/containers/status_container.js @@ -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; |