Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
fix(overflow-menu) Use fixed height only on drawer (#10612)
Robert Pintilii913945e820af
diff --git a/react/features/toolbox/components/web/Toolbox.js b/react/features/toolbox/components/web/Toolbox.jsindex f3ae3b5ebe..489bcee2e7 100644--- a/react/features/toolbox/components/web/Toolbox.js+++ b/react/features/toolbox/components/web/Toolbox.js@@ -1,6 +1,7 @@// @flowimport { withStyles } from '@material-ui/core/styles';+import clsx from 'clsx';import React, { Component, Fragment } from 'react';import keyboardShortcut from '../../../../../modules/keyboardshortcut/keyboardshortcut';@@ -179,6 +180,11 @@ type Props = {*/_localVideo: Object,+ /**+ *Whether or not the overflow menu is displayed in a drawer drawer.+ */+ _overflowDrawer: boolean,+/*** Whether or not the overflow menu is visible.*/@@ -264,7 +270,10 @@ const styles = theme => {fontSize: 14,listStyleType: 'none',padding: '8px 0',- backgroundColor: theme.palette.ui03,+ backgroundColor: theme.palette.ui03+ },++ overflowMenuDrawer: {overflowY: 'auto',height: `calc(${DRAWER_MAX_HEIGHT} - ${REACTIONS_MENU_HEIGHT}px - 16px)`}@@ -1226,6 +1235,7 @@ class Toolbox extends Component<Props> {_renderToolboxContent() {const {_isMobile,+ _overflowDrawer,_overflowMenuVisible,_reactionsEnabled,_toolbarButtons,@@ -1268,7 +1278,9 @@ class Toolbox extends Component<Props> {}><ularia-label = { t(toolbarAccLabel) }- className = { classes.overflowMenu }+ className = { clsx(classes.overflowMenu,+ _overflowDrawer && classes.overflowMenuDrawer)+ }id = 'overflow-menu'onKeyDown = { this._onEscKey }role = 'menu'>@@ -1320,7 +1332,8 @@ function _mapStateToProps(state, ownProps) {} = state['features/base/config'];const {fullScreen,- overflowMenuVisible+ overflowMenuVisible,+ overflowDrawer} = state['features/toolbox'];const localParticipant = getLocalParticipant(state);const localVideo = getLocalVideoTrack(state['features/base/tracks']);@@ -1364,6 +1377,7 @@ function _mapStateToProps(state, ownProps) {_localParticipantID: localParticipant?.id,_localVideo: localVideo,_overflowMenuVisible: overflowMenuVisible,+ _overflowDrawer: overflowDrawer,_participantsPaneOpen: getParticipantsPaneOpen(state),_raisedHand: hasRaisedHand(localParticipant),_reactionsEnabled: isReactionsEnabled(state),