From 6bce0bc917bd3881b5298e416e6707afad45563d Mon Sep 17 00:00:00 2001 From: Calinteodor Date: Tue, 22 Nov 2022 21:50:16 +0200 Subject: [PATCH] fix: Native styles fixes (#12606) * feat(conference/native): update indicator styles * feat(prejoin/native): removed unnecessary styles * feat(mobile/navigation): fixed header buttons style * feat(mobile/navigation): fixed linter --- .../conference/components/native/styles.js | 6 +++-- .../components/HeaderNavigationButton.js | 16 ++---------- .../mobile/navigation/components/styles.js | 25 ++++++++----------- .../prejoin/components/native/Prejoin.tsx | 5 +--- react/features/prejoin/components/styles.js | 6 +---- 5 files changed, 19 insertions(+), 39 deletions(-) diff --git a/react/features/conference/components/native/styles.js b/react/features/conference/components/native/styles.js index 34805beee..6eda5d133 100644 --- a/react/features/conference/components/native/styles.js +++ b/react/features/conference/components/native/styles.js @@ -129,8 +129,8 @@ export default { }, roomTimer: { - color: BaseTheme.palette.text01, ...BaseTheme.typography.bodyShortBold, + color: BaseTheme.palette.text01, paddingHorizontal: 8, paddingVertical: 6, textAlign: 'center' @@ -138,8 +138,9 @@ export default { roomTimerView: { backgroundColor: BaseTheme.palette.ui03, - borderRadius: 3, + borderRadius: BaseTheme.shape.borderRadius, justifyContent: 'center', + minHeight: 32, minWidth: 50 }, @@ -190,6 +191,7 @@ export default { raisedHandsCountLabel: { alignItems: 'center', backgroundColor: BaseTheme.palette.warning02, + borderRadius: BaseTheme.shape.borderRadius, flexDirection: 'row', marginLeft: BaseTheme.spacing[0], marginBottom: BaseTheme.spacing[0] diff --git a/react/features/mobile/navigation/components/HeaderNavigationButton.js b/react/features/mobile/navigation/components/HeaderNavigationButton.js index 222427523..e49f37606 100644 --- a/react/features/mobile/navigation/components/HeaderNavigationButton.js +++ b/react/features/mobile/navigation/components/HeaderNavigationButton.js @@ -2,18 +2,11 @@ import React from 'react'; import { Text, TouchableRipple } from 'react-native-paper'; import { Icon } from '../../../base/icons'; -import type { StyleType } from '../../../base/styles'; -import BaseTheme from '../../../base/ui/components/BaseTheme.native'; import { navigationStyles } from './styles'; type Props = { - /** - * Style of the header button . - */ - buttonStyle?: StyleType, - /** * Is the button disabled? */ @@ -42,7 +35,6 @@ type Props = { const HeaderNavigationButton = ({ - buttonStyle, disabled, label, onPress, @@ -55,14 +47,10 @@ const HeaderNavigationButton src ? ( + style = { navigationStyles.headerNavigationButtonIcon } > + src = { src } /> ) : ( = ({ navigation }: IPrejoinProps) => { let contentWrapperStyles; let contentContainerStyles; let largeVideoContainerStyles; - let toolboxContainerStyles; if (aspectRatio === ASPECT_RATIO_NARROW) { contentWrapperStyles = styles.contentWrapper; contentContainerStyles = styles.contentContainer; largeVideoContainerStyles = styles.largeVideoContainer; - toolboxContainerStyles = styles.toolboxContainer; } else { contentWrapperStyles = styles.contentWrapperWide; contentContainerStyles = styles.contentContainerWide; largeVideoContainerStyles = styles.largeVideoContainerWide; - toolboxContainerStyles = styles.toolboxContainerWide; } return ( @@ -161,7 +158,7 @@ const Prejoin: React.FC = ({ navigation }: IPrejoinProps) => { } - + diff --git a/react/features/prejoin/components/styles.js b/react/features/prejoin/components/styles.js index 5118116b6..63dc530a0 100644 --- a/react/features/prejoin/components/styles.js +++ b/react/features/prejoin/components/styles.js @@ -2,6 +2,7 @@ import BaseTheme from '../../base/ui/components/BaseTheme.native'; export default { + joinButton: { marginTop: BaseTheme.spacing[3], width: 352 @@ -77,11 +78,6 @@ export default { width: 148 }, - toolboxContainerWide: { - flexDirection: 'row', - justifyContent: 'center' - }, - formWrapper: { alignItems: 'center', justifyContent: 'center'