mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-05-14 18:17:47 +00:00
feat(narrow-layout) Use drawer menus on desktop narrow mode (#12799)
This commit is contained in:
@@ -170,13 +170,14 @@ class VideoSettingsButton extends Component<Props> {
|
||||
*/
|
||||
function mapStateToProps(state) {
|
||||
const { permissions = {} } = state['features/base/devices'];
|
||||
const { isNarrowLayout } = state['features/base/responsive-ui'];
|
||||
|
||||
return {
|
||||
hasPermissions: permissions.video,
|
||||
hasVideoTrack: Boolean(getLocalJitsiVideoTrack(state)),
|
||||
isDisabled: isVideoSettingsButtonDisabled(state),
|
||||
isOpen: getVideoSettingsVisibility(state),
|
||||
visible: !isMobileBrowser()
|
||||
visible: !isMobileBrowser() && !isNarrowLayout
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user