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(filmstrip): updated styles and moved raised hand count to the right (#13094)

Calinteodor1d119cbd3628
diff --git a/react/features/conference/components/native/styles.js b/react/features/conference/components/native/styles.js
index 77e9cfc463..a485b64b1b 100644
--- a/react/features/conference/components/native/styles.js
+++ b/react/features/conference/components/native/styles.js
@@ -109,18 +109,17 @@ export default {
},
alwaysOnTitleBar: {
- paddingRight: 0,
- borderRadius: 6,
+ alignItems: 'center',
+ alignSelf: 'flex-end',
backgroundColor: 'rgba(0, 0, 0, .5)',
- marginLeft: BaseTheme.spacing[2],
+ borderRadius: BaseTheme.shape.borderRadius,
flexDirection: 'row',
- alignSelf: 'flex-start',
- alignItems: 'center',
justifyContent: 'center',
- marginTop: BaseTheme.spacing[2],
-
+ marginRight: BaseTheme.spacing[3],
+ marginTop: BaseTheme.spacing[3],
+ paddingRight: BaseTheme.spacing[0],
'&:not(:empty)': {
- padding: 4
+ padding: BaseTheme.spacing[1]
}
},
diff --git a/react/features/filmstrip/components/native/RaisedHandIndicator.js b/react/features/filmstrip/components/native/RaisedHandIndicator.js
index 3b0f9ed348..5299bd1a85 100644
--- a/react/features/filmstrip/components/native/RaisedHandIndicator.js
+++ b/react/features/filmstrip/components/native/RaisedHandIndicator.js
@@ -7,21 +7,12 @@ import { connect } from 'react-redux';
import { IconRaiseHand } from '../../../base/icons';
import { BaseIndicator } from '../../../base/react';
import AbstractRaisedHandIndicator, {
- type Props as AbstractProps,
_mapStateToProps
} from '../AbstractRaisedHandIndicator';
import styles from './styles';
-type Props = AbstractProps & {
-
- /**
- * Whether or not tile view layout has been enabled as the user preference.
- */
- isTileViewEnabled: boolean
-};
-
/**
* Thumbnail badge showing that the participant would like to speak.
*
@@ -34,13 +25,8 @@ class RaisedHandIndicator extends AbstractRaisedHandIndicator<Props> {
* @returns {React$Element<*>}
*/
_renderIndicator() {
- const { isTileViewEnabled } = this.props;
- const raisedHandIndicatorStyles = isTileViewEnabled
- ? styles.raisedHandIndicatorTileView
- : styles.raisedHandIndicator;
-
return (
- <View style = { raisedHandIndicatorStyles }>
+ <View style = { styles.raisedHandIndicator }>
<BaseIndicator
icon = { IconRaiseHand }
iconStyle = { styles.raisedHandIcon } />
diff --git a/react/features/filmstrip/components/native/Thumbnail.js b/react/features/filmstrip/components/native/Thumbnail.js
index 7764108e17..3492ddde82 100644
--- a/react/features/filmstrip/components/native/Thumbnail.js
+++ b/react/features/filmstrip/components/native/Thumbnail.js
@@ -31,7 +31,6 @@ import {
showSharedVideoMenu
} from '../../../participants-pane/actions.native';
import { toggleToolboxVisible } from '../../../toolbox/actions.native';
-import { shouldDisplayTileView } from '../../../video-layout';
import { SQUARE_TILE_ASPECT_RATIO } from '../../constants';
import AudioMutedIndicator from './AudioMutedIndicator';
@@ -66,11 +65,6 @@ type Props = {
*/
_isScreenShare: boolean,
- /**
- * Whether or not tile view layout has been enabled as the user preference.
- */
- _isTileViewEnabled: boolean,
-
/**
* Indicates whether the thumbnail is for a virtual screenshare participant.
*/
@@ -211,7 +205,6 @@ class Thumbnail extends PureComponent<Props> {
const {
_audioMuted: audioMuted,
_fakeParticipant,
- _isTileViewEnabled,
_isScreenShare: isScreenShare,
_isVirtualScreenshare,
_renderModeratorIndicator: renderModeratorIndicator,
@@ -227,13 +220,9 @@ class Thumbnail extends PureComponent<Props> {
key = 'top-left-indicators'
style = { styles.thumbnailTopLeftIndicatorContainer }>
{ !_isVirtualScreenshare && <ConnectionIndicator participantId = { participantId } /> }
- {
- !_isVirtualScreenshare && <RaisedHandIndicator
- isTileView = { _isTileViewEnabled }
- participantId = { participantId } />
- }
- { tileView && isScreenShare && (
- <View style = { styles.indicatorContainer }>
+ { !_isVirtualScreenshare && <RaisedHandIndicator participantId = { participantId } /> }
+ { tileView && !isScreenShare && (
+ <View style = { styles.screenShareIndicatorContainer }>
<ScreenShareIndicator />
</View>
) }
@@ -424,7 +413,6 @@ function _mapStateToProps(state, ownProps) {
_fakeParticipant: participant?.fakeParticipant,
_gifSrc: mode === 'chat' ? null : gifSrc,
_isScreenShare: isScreenShare,
- _isTileViewEnabled: shouldDisplayTileView(state),
_isVirtualScreenshare: isScreenShareParticipant(participant),
_local: participant?.local,
_localVideoOwner: Boolean(ownerId === localParticipantId),
diff --git a/react/features/filmstrip/components/native/styles.js b/react/features/filmstrip/components/native/styles.js
index 51c3cb3167..849b1252e4 100644
--- a/react/features/filmstrip/components/native/styles.js
+++ b/react/features/filmstrip/components/native/styles.js
@@ -10,17 +10,11 @@ const indicatorContainer = {
alignItems: 'center',
backgroundColor: 'rgba(0, 0, 0, 0.7)',
borderRadius: BaseTheme.shape.borderRadius,
- flexShrink: 1,
height: 24,
- justifyContent: 'center',
margin: 2,
padding: 2
};
-const raisedHandIndicator = {
- ...indicatorContainer,
- backgroundColor: BaseTheme.palette.warning02
-};
/**
* The styles of the feature filmstrip.
@@ -130,6 +124,10 @@ export default {
...indicatorContainer
},
+ screenShareIndicatorContainer: {
+ ...indicatorContainer
+ },
+
/**
* The thumbnail indicator container.
*/
@@ -159,13 +157,8 @@ export default {
},
raisedHandIndicator: {
- ...raisedHandIndicator,
- left: 14
- },
-
- raisedHandIndicatorTileView: {
- ...raisedHandIndicator,
- left: 2
+ ...indicatorContainer,
+ backgroundColor: BaseTheme.palette.warning02
},
raisedHandIcon: {