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(conference): fixed raisedhandcountlabel and filmstrip conflict

Calin-Teodorc4f6d37aa1e8
diff --git a/react/features/conference/components/native/Conference.js b/react/features/conference/components/native/Conference.js
index 802b3e2a02..657db3dae9 100644
--- a/react/features/conference/components/native/Conference.js
+++ b/react/features/conference/components/native/Conference.js
@@ -20,7 +20,10 @@ import { getParticipantCount } from '../../../base/participants/functions';
import Container from '../../../base/react/components/native/Container';
import LoadingIndicator from '../../../base/react/components/native/LoadingIndicator';
import TintedView from '../../../base/react/components/native/TintedView';
-import { ASPECT_RATIO_NARROW } from '../../../base/responsive-ui/constants';
+import {
+ ASPECT_RATIO_NARROW,
+ ASPECT_RATIO_WIDE
+} from '../../../base/responsive-ui/constants';
import TestConnectionInfo from '../../../base/testing/components/TestConnectionInfo';
import { isCalendarEnabled } from '../../../calendar-sync/functions.native';
import DisplayNameLabel from '../../../display-name/components/native/DisplayNameLabel';
@@ -377,7 +380,9 @@ class Conference extends AbstractConference<Props, State> {
*/
_renderContent() {
const {
+ _aspectRatio,
_connecting,
+ _filmstripVisible,
_isOneToOneConference,
_largeVideoParticipantId,
_reducedUI,
@@ -385,10 +390,22 @@ class Conference extends AbstractConference<Props, State> {
_toolboxVisible
} = this.props;
+ let alwaysOnTitleBarStyles;
+
if (_reducedUI) {
return this._renderContentForReducedUi();
}
+ if (_aspectRatio === ASPECT_RATIO_WIDE) {
+ alwaysOnTitleBarStyles
+ = !_shouldDisplayTileView && _filmstripVisible
+ ? styles.alwaysOnTitleBarWide
+ : styles.alwaysOnTitleBar;
+ } else {
+ alwaysOnTitleBarStyles = styles.alwaysOnTitleBar;
+
+ }
+
return (
<>
{/*
@@ -465,7 +482,7 @@ class Conference extends AbstractConference<Props, State> {
</View>
<View
pointerEvents = 'box-none'
- style = { styles.alwaysOnTitleBar }>
+ style = { alwaysOnTitleBarStyles }>
{/* eslint-disable-next-line react/jsx-no-bind */}
<AlwaysOnLabels createOnPress = { this._createOnPress } />
</View>
diff --git a/react/features/conference/components/native/styles.js b/react/features/conference/components/native/styles.js
index 5a5e050716..18bdbf1c7a 100644
--- a/react/features/conference/components/native/styles.js
+++ b/react/features/conference/components/native/styles.js
@@ -16,6 +16,20 @@ const titleBarSafeView = {
top: 0
};
+const alwaysOnTitleBar = {
+ alignItems: 'center',
+ alignSelf: 'flex-end',
+ backgroundColor: 'rgba(0, 0, 0, .5)',
+ borderRadius: BaseTheme.shape.borderRadius,
+ flexDirection: 'row',
+ justifyContent: 'center',
+ marginTop: BaseTheme.spacing[3],
+ paddingRight: BaseTheme.spacing[0],
+ '&:not(:empty)': {
+ padding: BaseTheme.spacing[1]
+ }
+};
+
/**
* The styles of the feature conference.
*/
@@ -109,18 +123,13 @@ export default {
},
alwaysOnTitleBar: {
- alignItems: 'center',
- alignSelf: 'flex-end',
- backgroundColor: 'rgba(0, 0, 0, .5)',
- borderRadius: BaseTheme.shape.borderRadius,
- flexDirection: 'row',
- justifyContent: 'center',
- marginRight: BaseTheme.spacing[3],
- marginTop: BaseTheme.spacing[3],
- paddingRight: BaseTheme.spacing[0],
- '&:not(:empty)': {
- padding: BaseTheme.spacing[1]
- }
+ ...alwaysOnTitleBar,
+ marginRight: BaseTheme.spacing[2]
+ },
+
+ alwaysOnTitleBarWide: {
+ ...alwaysOnTitleBar,
+ marginRight: BaseTheme.spacing[12]
},
expandedLabelWrapper: {
@@ -193,8 +202,8 @@ export default {
backgroundColor: BaseTheme.palette.warning02,
borderRadius: BaseTheme.shape.borderRadius,
flexDirection: 'row',
- marginLeft: BaseTheme.spacing[0],
- marginBottom: BaseTheme.spacing[0]
+ marginBottom: BaseTheme.spacing[0],
+ marginLeft: BaseTheme.spacing[0]
},
raisedHandsCountLabelText: {