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] Add workaround for broken border radius on Android

Saúl Ibarra Corretgé14d394aed8ec
diff --git a/react/features/filmstrip/components/styles.js b/react/features/filmstrip/components/styles.js
index d7951cba80..359a4d8f63 100644
--- a/react/features/filmstrip/components/styles.js
+++ b/react/features/filmstrip/components/styles.js
@@ -1,3 +1,4 @@
+import { Platform } from '../../base/react';
import { BoxModel, ColorPalette } from '../../base/styles';
/**
@@ -9,7 +10,10 @@ export const styles = {
*/
avatar: {
alignSelf: 'center',
- borderRadius: 25,
+
+ // XXX Workaround for Android: for images < 80 the border radius doesn't
+ // work properly, but applying a radius twice as big does the trick.
+ borderRadius: Platform.OS === 'android' ? 100 : 25,
flex: 0,
height: 50,
width: 50