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(visitors-queue): style adjustments for native (#16228)

Horatiu Muresan99f34aaef4c0
diff --git a/react/features/lobby/components/native/styles.ts b/react/features/lobby/components/native/styles.ts
index 40c3635a7d..a3f3e96c47 100644
--- a/react/features/lobby/components/native/styles.ts
+++ b/react/features/lobby/components/native/styles.ts
@@ -35,11 +35,6 @@ export default {
width: 352
},
- hangupButton: {
- marginTop: BaseTheme.spacing[3],
- width: 352
- },
-
joiningMessage: {
color: BaseTheme.palette.text01,
marginHorizontal: BaseTheme.spacing[3],
diff --git a/react/features/visitors/components/native/VisitorsQueue.tsx b/react/features/visitors/components/native/VisitorsQueue.tsx
index f9157bfe70..184aac423d 100644
--- a/react/features/visitors/components/native/VisitorsQueue.tsx
+++ b/react/features/visitors/components/native/VisitorsQueue.tsx
@@ -1,6 +1,6 @@
import React, { useCallback } from 'react';
import { useTranslation } from 'react-i18next';
-import { Text, View } from 'react-native';
+import { Text, View, ViewStyle } from 'react-native';
import { useDispatch } from 'react-redux';
import { hangup } from '../../../base/connection/actions.native';
@@ -8,7 +8,9 @@ import LoadingIndicator from '../../../base/react/components/native/LoadingIndic
import BaseTheme from '../../../base/ui/components/BaseTheme.native';
import Button from '../../../base/ui/components/native/Button';
import { BUTTON_TYPES } from '../../../base/ui/constants.any';
-import styles from '../../../lobby/components/native/styles';
+import lobbyStyles from '../../../lobby/components/native/styles';
+
+import styles from './styles';
/**
* The component that renders visitors queue UI.
@@ -23,13 +25,13 @@ export default function VisitorsQueue() {
}, []);
return (
- <View style = { styles.lobbyWaitingFragmentContainer }>
- <Text style = { styles.lobbyTitle }>
+ <View style = { styles.visitorsQueue as ViewStyle }>
+ <Text style = { styles.visitorsQueueTitle }>
{ t('visitors.waitingMessage') }
</Text>
<LoadingIndicator
color = { BaseTheme.palette.icon01 }
- style = { styles.loadingIndicator } />
+ style = { lobbyStyles.loadingIndicator } />
<Button
accessibilityLabel = 'toolbar.accessibilityLabel.leaveConference'
labelKey = 'toolbar.accessibilityLabel.leaveConference'
diff --git a/react/features/visitors/components/native/styles.ts b/react/features/visitors/components/native/styles.ts
index 2189819b87..aa17acf123 100644
--- a/react/features/visitors/components/native/styles.ts
+++ b/react/features/visitors/components/native/styles.ts
@@ -1,12 +1,34 @@
+import BaseTheme from '../../../base/ui/components/BaseTheme.native';
+
/**
* The styles of the feature visitors.
*/
export default {
+ hangupButton: {
+ marginTop: BaseTheme.spacing[3],
+ width: 240
+ },
+
raiseHandButton: {
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
width: '100%'
- }
+ },
+
+ visitorsQueue: {
+ alignItems: 'center',
+ display: 'flex',
+ justifyContent: 'center',
+ height: '100%',
+ width: '100%',
+ },
+
+ visitorsQueueTitle: {
+ ...BaseTheme.typography.heading5,
+ color: BaseTheme.palette.text01,
+ marginBottom: BaseTheme.spacing[3],
+ textAlign: 'center'
+ },
};