From 8bbee7d1dc955da9f793582b0e9d28fbe9f64e52 Mon Sep 17 00:00:00 2001 From: Calin Chitu Date: Thu, 5 Aug 2021 12:36:25 +0300 Subject: [PATCH] feat(toolbox) updated menu items order, dividers for mobile --- .../toolbox/components/native/OverflowMenu.js | 15 ++++++++++----- react/features/toolbox/components/web/Toolbox.js | 14 +++++++------- 2 files changed, 17 insertions(+), 12 deletions(-) diff --git a/react/features/toolbox/components/native/OverflowMenu.js b/react/features/toolbox/components/native/OverflowMenu.js index 5aabeddff..7dde4b88c 100644 --- a/react/features/toolbox/components/native/OverflowMenu.js +++ b/react/features/toolbox/components/native/OverflowMenu.js @@ -1,6 +1,7 @@ // @flow import React, { PureComponent } from 'react'; +import { Divider } from 'react-native-paper'; import { ColorSchemeRegistry } from '../../../base/color-scheme'; import { BottomSheet, hideDialog, isDialogOpen } from '../../../base/dialog'; @@ -16,6 +17,7 @@ import SecurityDialogButton from '../../../security/components/security-dialog/S import { SharedVideoButton } from '../../../shared-video/components'; import { ClosedCaptionButton } from '../../../subtitles'; import { TileViewButton } from '../../../video-layout'; +import styles from '../../../video-menu/components/native/styles'; import { getMovableButtons } from '../../functions.native'; import HelpButton from '../HelpButton'; import MuteEveryoneButton from '../MuteEveryoneButton'; @@ -140,17 +142,20 @@ class OverflowMenu extends PureComponent { {!_reactionsEnabled && !toolbarButtons.has('raisehand') && } + + + + + + + {!toolbarButtons.has('togglecamera') && } {!toolbarButtons.has('tileview') && } - - - + - - ); diff --git a/react/features/toolbox/components/web/Toolbox.js b/react/features/toolbox/components/web/Toolbox.js index 710c7ed9d..36b1602ac 100644 --- a/react/features/toolbox/components/web/Toolbox.js +++ b/react/features/toolbox/components/web/Toolbox.js @@ -655,6 +655,12 @@ class Toolbox extends Component { group: 2 }; + const livestreaming = { + key: 'livestreaming', + Content: LiveStreamButton, + group: 2 + }; + const muteEveryone = { key: 'mute-everyone', Content: MuteEveryoneButton, @@ -667,12 +673,6 @@ class Toolbox extends Component { group: 2 }; - const livestreaming = { - key: 'livestreaming', - Content: LiveStreamButton, - group: 2 - }; - const shareVideo = { key: 'sharedvideo', Content: SharedVideoButton, @@ -755,9 +755,9 @@ class Toolbox extends Component { cc, recording, localRecording, + livestreaming, muteEveryone, muteVideoEveryone, - livestreaming, shareVideo, shareAudio, etherpad,