Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(reactions-firefox) Fix drawer menu not scrollable on FF (#14181)

Horatiu Muresan213f1b68e1fc
diff --git a/react/features/toolbox/components/web/OverflowMenuButton.tsx b/react/features/toolbox/components/web/OverflowMenuButton.tsx
index 35fb6f7139..3503b686a0 100644
--- a/react/features/toolbox/components/web/OverflowMenuButton.tsx
+++ b/react/features/toolbox/components/web/OverflowMenuButton.tsx
@@ -72,7 +72,7 @@ const useStyles = makeStyles<{ overflowDrawer: boolean; reactionsMenuHeight: num
(_theme, { reactionsMenuHeight, overflowDrawer }) => {
return {
overflowMenuDrawer: {
- overflow: 'hidden',
+ overflowY: 'scroll',
height: `calc(${DRAWER_MAX_HEIGHT})`
},
contextMenu: {
@@ -92,8 +92,13 @@ const useStyles = makeStyles<{ overflowDrawer: boolean; reactionsMenuHeight: num
overflowY: 'auto'
},
footer: {
- position: 'relative',
- bottom: 0
+ position: 'absolute',
+ bottom: 0,
+ left: 0,
+ right: 0
+ },
+ reactionsPadding: {
+ height: `${reactionsMenuHeight}px`
}
};
});
@@ -211,6 +216,7 @@ const OverflowMenuButton = ({
<>
<div className = { classes.overflowMenuDrawer }>
{ overflowMenu }
+ <div className = { classes.reactionsPadding } />
</div>
</>
</Drawer>
diff --git a/react/features/toolbox/subscriber.web.ts b/react/features/toolbox/subscriber.web.ts
index 0531b36749..ce365abc6c 100644
--- a/react/features/toolbox/subscriber.web.ts
+++ b/react/features/toolbox/subscriber.web.ts
@@ -92,11 +92,9 @@ StateListenerRegistry.register(
isTileView: isLayoutTileView(state)
};
},
- /* listener */({ clientHeight, isTileView: previousIsTileView }, store) => {
- const state = store.getState();
-
- if (!isLayoutTileView(state)) {
- if (previousIsTileView) {
+ /* listener */({ clientHeight, isTileView }, store, previousState) => {
+ if (!isTileView) {
+ if (previousState?.isTileView) {
store.dispatch(setShiftUp(false));
}