From 913945e820af2ad72fcf19ea09b74c2f36224f20 Mon Sep 17 00:00:00 2001 From: Robert Pintilii Date: Tue, 14 Dec 2021 13:39:01 +0200 Subject: [PATCH] fix(overflow-menu) Use fixed height only on drawer (#10612) --- .../toolbox/components/web/Toolbox.js | 20 ++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/react/features/toolbox/components/web/Toolbox.js b/react/features/toolbox/components/web/Toolbox.js index f3ae3b5eb..489bcee2e 100644 --- a/react/features/toolbox/components/web/Toolbox.js +++ b/react/features/toolbox/components/web/Toolbox.js @@ -1,6 +1,7 @@ // @flow import { 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 { _renderToolboxContent() { const { _isMobile, + _overflowDrawer, _overflowMenuVisible, _reactionsEnabled, _toolbarButtons, @@ -1268,7 +1278,9 @@ class Toolbox extends Component { }>