Skip to content

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

[RN] Use rounded avatars in the film strip

Saúl Ibarra Corretgé50fea44ce228
diff --git a/react/features/base/participants/components/Avatar.native.js b/react/features/base/participants/components/Avatar.native.js
index 9daa4f1361..dd1a77f08f 100644
--- a/react/features/base/participants/components/Avatar.native.js
+++ b/react/features/base/participants/components/Avatar.native.js
@@ -1,8 +1,6 @@
import React, { Component } from 'react';
import { Image } from 'react-native';
-import { styles } from './styles';
-
/**
* Display a participant avatar.
*/
@@ -33,7 +31,7 @@ export default class Avatar extends Component {
// XXX Avatar is expected to display the whole image.
resizeMode = 'contain'
source = {{ uri: this.props.uri }}
- style = { [ styles.avatar, this.props.style ] } />
+ style = { this.props.style } />
);
}
}
diff --git a/react/features/base/participants/components/styles.js b/react/features/base/participants/components/styles.js
index c2179955b6..23df688f3a 100644
--- a/react/features/base/participants/components/styles.js
+++ b/react/features/base/participants/components/styles.js
@@ -4,19 +4,12 @@ import { createStyleSheet } from '../../styles';
* The style of the avatar and participant view UI (components).
*/
export const styles = createStyleSheet({
- /**
- * Avatar style.
- */
- avatar: {
- flex: 1,
- width: '100%'
- },
-
/**
* ParticipantView style.
*/
participantView: {
alignItems: 'stretch',
- flex: 1
+ flex: 1,
+ justifyContent: 'center'
}
});
diff --git a/react/features/filmstrip/components/Thumbnail.js b/react/features/filmstrip/components/Thumbnail.js
index 686a3a376f..d0a32e82c5 100644
--- a/react/features/filmstrip/components/Thumbnail.js
+++ b/react/features/filmstrip/components/Thumbnail.js
@@ -95,6 +95,7 @@ class Thumbnail extends Component {
= { audioTrack.jitsiTrack.getOriginalStream() } /> }
<ParticipantView
+ avatarStyle = { styles.avatar }
participantId = { participantId }
showAvatar = { participantNotInLargeVideo }
showVideo = { participantNotInLargeVideo }
diff --git a/react/features/filmstrip/components/styles.js b/react/features/filmstrip/components/styles.js
index 325e1caea0..d7951cba80 100644
--- a/react/features/filmstrip/components/styles.js
+++ b/react/features/filmstrip/components/styles.js
@@ -4,6 +4,17 @@ import { BoxModel, ColorPalette } from '../../base/styles';
* Filmstrip related styles common to both Web and native.
*/
export const styles = {
+ /**
+ * Avatar style.
+ */
+ avatar: {
+ alignSelf: 'center',
+ borderRadius: 25,
+ flex: 0,
+ height: 50,
+ width: 50
+ },
+
/**
* Dominant speaker indicator style.
*/