Skip to content

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

fix(thumbnails, rn) Hide empty indicators container on native (#11019)

Robert Pintiliifde33b72d035
diff --git a/react/features/display-name/components/native/DisplayNameLabel.js b/react/features/display-name/components/native/DisplayNameLabel.js
index 54bbd2309c..797985cfa7 100644
--- a/react/features/display-name/components/native/DisplayNameLabel.js
+++ b/react/features/display-name/components/native/DisplayNameLabel.js
@@ -69,12 +69,12 @@ class DisplayNameLabel extends Component<Props> {
* }}
*/
function _mapStateToProps(state: Object, ownProps: Props) {
- const { participantId } = ownProps;
+ const { participantId, contained } = ownProps;
const participant = getParticipantById(state, participantId);
return {
_participantName: getParticipantDisplayName(state, participantId),
- _render: participant && !participant?.local && !participant?.isFakeParticipant
+ _render: participant && (!participant?.local || contained) && !participant?.isFakeParticipant
};
}
diff --git a/react/features/display-name/components/native/styles.js b/react/features/display-name/components/native/styles.js
index 86c0037bed..b5f5217f84 100644
--- a/react/features/display-name/components/native/styles.js
+++ b/react/features/display-name/components/native/styles.js
@@ -12,8 +12,8 @@ export default {
},
displayNamePadding: {
- paddingHorizontal: BaseTheme.spacing[2],
- paddingVertical: BaseTheme.spacing[1]
+ padding: BaseTheme.spacing[1],
+ paddingRight: 6
},
displayNameText: {
diff --git a/react/features/filmstrip/components/native/Thumbnail.js b/react/features/filmstrip/components/native/Thumbnail.js
index e9e3869982..31e926a51b 100644
--- a/react/features/filmstrip/components/native/Thumbnail.js
+++ b/react/features/filmstrip/components/native/Thumbnail.js
@@ -224,8 +224,10 @@ class Thumbnail extends PureComponent<Props> {
indicators.push(<Container
key = 'bottom-indicators'
style = { styles.thumbnailIndicatorContainer }>
- { audioMuted && <AudioMutedIndicator /> }
- { renderModeratorIndicator && <ModeratorIndicator />}
+ <Container style = { (audioMuted || renderModeratorIndicator) && styles.bottomIndicatorsContainer }>
+ { audioMuted && <AudioMutedIndicator /> }
+ { renderModeratorIndicator && <ModeratorIndicator />}
+ </Container>
{
renderDisplayName && <DisplayNameLabel
contained = { true }
diff --git a/react/features/filmstrip/components/native/styles.js b/react/features/filmstrip/components/native/styles.js
index 6ed9488c5a..88df639bcd 100644
--- a/react/features/filmstrip/components/native/styles.js
+++ b/react/features/filmstrip/components/native/styles.js
@@ -134,7 +134,13 @@ export default {
position: 'absolute',
maxWidth: '95%',
overflow: 'hidden',
- ...indicatorContainer
+ ...indicatorContainer,
+ padding: 0
+ },
+
+ bottomIndicatorsContainer: {
+ padding: 2,
+ flexDirection: 'row'
},
thumbnailTopIndicatorContainer: {