From 0a282b587b48d074d96fe5447f77eda7ae4a9f11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Brandner?= Date: Tue, 20 Jul 2021 16:07:27 +0200 Subject: [PATCH] Reorder buttons MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Šimon Brandner --- src/components/views/voip/CallView.tsx | 43 +++++++++++++++----------- 1 file changed, 25 insertions(+), 18 deletions(-) diff --git a/src/components/views/voip/CallView.tsx b/src/components/views/voip/CallView.tsx index 58aefc8a01..f4ffa35aeb 100644 --- a/src/components/views/voip/CallView.tsx +++ b/src/components/views/voip/CallView.tsx @@ -538,19 +538,26 @@ export default class CallView extends React.Component { // The dial pad & 'more' button actions are only relevant in a connected call // When not connected, we have to put something there to make the flexbox alignment correct - const dialpadButton = this.state.callState === CallState.Connected ? :
; - - const contextMenuButton = this.state.callState === CallState.Connected ? :
; + let dialpadButton; + let contextMenuButton; + if (this.state.callState === CallState.Connected) { + contextMenuButton = ( + + ); + dialpadButton = ( + + ); + } return (
@@ -560,15 +567,15 @@ export default class CallView extends React.Component { onClick={this.onMicMuteClick} /> { vidMuteButton } +
+
+ { screensharingButton } + { sidebarButton } + { contextMenuButton } - { screensharingButton } - { sidebarButton } -
-
- { contextMenuButton }
); }