Skip to content

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

feat(toolbox) updated menu items order, dividers for mobile

Calin Chitu8bbee7d1dc95
diff --git a/react/features/toolbox/components/native/OverflowMenu.js b/react/features/toolbox/components/native/OverflowMenu.js
index 5aabeddffa..7dde4b88cb 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<Props, State> {
<ParticipantsPaneButton { ...buttonProps } />
<AudioOnlyButton { ...buttonProps } />
{!_reactionsEnabled && !toolbarButtons.has('raisehand') && <RaiseHandButton { ...buttonProps } />}
+ <Divider style = { styles.divider } />
<SecurityDialogButton { ...buttonProps } />
- <ScreenSharingButton { ...buttonProps } />
- {!toolbarButtons.has('togglecamera') && <ToggleCameraButton { ...buttonProps } />}
- {!toolbarButtons.has('tileview') && <TileViewButton { ...buttonProps } />}
<RecordButton { ...buttonProps } />
<LiveStreamButton { ...buttonProps } />
+ <MuteEveryoneButton { ...buttonProps } />
+ <MuteEveryonesVideoButton { ...buttonProps } />
+ <Divider style = { styles.divider } />
<SharedVideoButton { ...buttonProps } />
+ <ScreenSharingButton { ...buttonProps } />
+ {!toolbarButtons.has('togglecamera') && <ToggleCameraButton { ...buttonProps } />}
+ {!toolbarButtons.has('tileview') && <TileViewButton { ...buttonProps } />}
+ <Divider style = { styles.divider } />
<ClosedCaptionButton { ...buttonProps } />
<SharedDocumentButton { ...buttonProps } />
- <MuteEveryoneButton { ...buttonProps } />
- <MuteEveryonesVideoButton { ...buttonProps } />
<HelpButton { ...buttonProps } />
</BottomSheet>
);
diff --git a/react/features/toolbox/components/web/Toolbox.js b/react/features/toolbox/components/web/Toolbox.js
index 710c7ed9d4..36b1602ac0 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<Props> {
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<Props> {
group: 2
};
- const livestreaming = {
- key: 'livestreaming',
- Content: LiveStreamButton,
- group: 2
- };
-
const shareVideo = {
key: 'sharedvideo',
Content: SharedVideoButton,
@@ -755,9 +755,9 @@ class Toolbox extends Component<Props> {
cc,
recording,
localRecording,
+ livestreaming,
muteEveryone,
muteVideoEveryone,
- livestreaming,
shareVideo,
shareAudio,
etherpad,