Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
fix(filmstrip/toolbox) mobile ui adjustments
Calin Chitube152b12d7a7
diff --git a/react/features/filmstrip/components/native/Filmstrip.js b/react/features/filmstrip/components/native/Filmstrip.jsindex 7d4f54b940..0d96e4c2f0 100644--- a/react/features/filmstrip/components/native/Filmstrip.js+++ b/react/features/filmstrip/components/native/Filmstrip.js@@ -1,13 +1,15 @@// @flowimport React, { PureComponent } from 'react';-import { FlatList, SafeAreaView } from 'react-native';+import { FlatList } from 'react-native';+import { SafeAreaView } from 'react-native-safe-area-context';import { getLocalParticipant } from '../../../base/participants';import { Platform } from '../../../base/react';import { connect } from '../../../base/redux';import { ASPECT_RATIO_NARROW } from '../../../base/responsive-ui/constants';import { shouldHideSelfView } from '../../../base/settings/functions.any';+import { isToolboxVisible } from '../../../toolbox/functions';import { setVisibleRemoteParticipants } from '../../actions';import { isFilmstripVisible, shouldRemoteVideosBeVisible } from '../../functions';@@ -37,6 +39,11 @@ type Props = {*/_disableSelfView: boolean,+ /**+ * Whether or not the toolbox is displayed.+ */+ _isToolboxVisible: Boolean,+_localParticipantId: string,/**@@ -223,7 +230,14 @@ class Filmstrip extends PureComponent<Props> {* @returns {ReactElement}*/render() {- const { _aspectRatio, _localParticipantId, _participants, _visible, _disableSelfView } = this.props;+ const {+ _aspectRatio,+ _disableSelfView,+ _isToolboxVisible,+ _localParticipantId,+ _participants,+ _visible+ } = this.props;if (!_visible) {return null;@@ -248,7 +262,14 @@ class Filmstrip extends PureComponent<Props> {}return (- <SafeAreaView style = { filmstripStyle }>+ <SafeAreaView+ edges = { [+ !_isToolboxVisible && 'bottom',+ 'top',+ 'left',+ 'right'+ ].filter(Boolean) }+ style = { filmstripStyle }>{this._separateLocalThumbnail&& !isNarrowAspectRatio@@ -299,6 +320,7 @@ function _mapStateToProps(state) {_clientHeight: responsiveUI.clientHeight,_clientWidth: responsiveUI.clientWidth,_disableSelfView: disableSelfView,+ _isToolboxVisible: isToolboxVisible(state),_localParticipantId: getLocalParticipant(state)?.id,_participants: showRemoteVideos ? remoteParticipants : NO_REMOTE_VIDEOS,_visible: enabled && isFilmstripVisible(state)diff --git a/react/features/filmstrip/components/native/styles.js b/react/features/filmstrip/components/native/styles.jsindex 88df639bcd..757437b6d9 100644--- a/react/features/filmstrip/components/native/styles.js+++ b/react/features/filmstrip/components/native/styles.js@@ -45,7 +45,7 @@ export default {flexDirection: 'row',flexGrow: 0,justifyContent: 'flex-end',- marginBottom: 5+ marginBottom: BaseTheme.spacing[1]},/**diff --git a/react/features/toolbox/components/native/styles.js b/react/features/toolbox/components/native/styles.jsindex 42dc1ae5db..55948633d7 100644--- a/react/features/toolbox/components/native/styles.js+++ b/react/features/toolbox/components/native/styles.js@@ -100,7 +100,10 @@ const styles = {flexGrow: 0,height: '100%',width: '100%',- maxHeight: 80,++ // TODO revisit this++ maxHeight: 76,maxWidth: 580,marginLeft: 'auto',marginRight: 'auto'