|
|
|
@ -3,6 +3,7 @@ import clsx from 'clsx'; |
|
|
|
|
import _ from 'lodash'; |
|
|
|
|
import React, { PureComponent } from 'react'; |
|
|
|
|
import { WithTranslation } from 'react-i18next'; |
|
|
|
|
import { connect } from 'react-redux'; |
|
|
|
|
import { FixedSizeGrid, FixedSizeList } from 'react-window'; |
|
|
|
|
|
|
|
|
|
import { ACTION_SHORTCUT_TRIGGERED, createShortcutEvent, createToolbarEvent } from '../../../analytics/AnalyticsEvents'; |
|
|
|
@ -13,7 +14,6 @@ import { isMobileBrowser } from '../../../base/environment/utils'; |
|
|
|
|
import { translate } from '../../../base/i18n/functions'; |
|
|
|
|
import Icon from '../../../base/icons/components/Icon'; |
|
|
|
|
import { IconArrowDown, IconArrowUp } from '../../../base/icons/svg'; |
|
|
|
|
import { connect } from '../../../base/redux/functions'; |
|
|
|
|
import { getHideSelfView } from '../../../base/settings/functions.any'; |
|
|
|
|
import { showToolbox } from '../../../toolbox/actions.web'; |
|
|
|
|
import { isButtonEnabled, isToolboxVisible } from '../../../toolbox/functions.web'; |
|
|
|
@ -67,7 +67,7 @@ interface IProps extends WithTranslation { |
|
|
|
|
/** |
|
|
|
|
* The current layout of the filmstrip. |
|
|
|
|
*/ |
|
|
|
|
_currentLayout: string; |
|
|
|
|
_currentLayout?: string; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Whether or not to hide the self view. |
|
|
|
@ -167,7 +167,7 @@ interface IProps extends WithTranslation { |
|
|
|
|
/** |
|
|
|
|
* The height of the top panel (user resized). |
|
|
|
|
*/ |
|
|
|
|
_topPanelHeight?: number; |
|
|
|
|
_topPanelHeight?: number | null; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* The max height of the top panel. |
|
|
|
@ -182,7 +182,7 @@ interface IProps extends WithTranslation { |
|
|
|
|
/** |
|
|
|
|
* The width of the vertical filmstrip (user resized). |
|
|
|
|
*/ |
|
|
|
|
_verticalFilmstripWidth?: number; |
|
|
|
|
_verticalFilmstripWidth?: number | null; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Whether or not the vertical filmstrip should have a background color. |
|
|
|
@ -922,7 +922,7 @@ function _mapStateToProps(state: IReduxState, ownProps: Partial<IProps>) { |
|
|
|
|
_mainFilmstripVisible: visible, |
|
|
|
|
_maxFilmstripWidth: clientWidth - MIN_STAGE_VIEW_WIDTH, |
|
|
|
|
_maxTopPanelHeight: clientHeight - MIN_STAGE_VIEW_HEIGHT, |
|
|
|
|
_remoteParticipantsLength: _remoteParticipants?.length, |
|
|
|
|
_remoteParticipantsLength: _remoteParticipants?.length ?? 0, |
|
|
|
|
_topPanelHeight: topPanelHeight.current, |
|
|
|
|
_topPanelMaxHeight: topPanelHeight.current || TOP_FILMSTRIP_HEIGHT, |
|
|
|
|
_topPanelVisible, |
|
|
|
|