From 73160de3b7e535069ea00aa3a06f7c9ab852ae19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Fri, 28 Oct 2022 22:26:15 +0200 Subject: [PATCH] fix(connection-stats) make local / remote layout consistent Move region information and server count to the "More" section on both types of tiles. --- .../connection-stats/components/ConnectionStatsTable.tsx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/react/features/connection-stats/components/ConnectionStatsTable.tsx b/react/features/connection-stats/components/ConnectionStatsTable.tsx index fb03cb0ab1..573c441192 100644 --- a/react/features/connection-stats/components/ConnectionStatsTable.tsx +++ b/react/features/connection-stats/components/ConnectionStatsTable.tsx @@ -321,7 +321,8 @@ class ConnectionStatsTable extends Component { { isLocalVideo ? this._renderBandwidth() : null } { isLocalVideo ? this._renderTransport() : null } - { isLocalVideo ? this._renderRegion() : null } + { this._renderRegion() } + { isLocalVideo ? this._renderBridgeCount() : null } { this._renderAudioSsrc() } { this._renderVideoSsrc() } { this._renderParticipantId() } @@ -717,19 +718,15 @@ class ConnectionStatsTable extends Component { * @returns {ReactElement} */ _renderStatistics() { - const isRemoteVideo = !this.props.isLocalVideo; - return ( { this._renderConnectionSummary() } { this._renderBitrate() } { this._renderPacketLoss() } - { isRemoteVideo ? this._renderRegion() : null } { this._renderResolution() } { this._renderFrameRate() } { this._renderCodecs() } - { isRemoteVideo ? null : this._renderBridgeCount() }
);