fix(rn,bottom-sheet) fixed surface color

Also fix properly showing the remote menu.
This commit is contained in:
Calinteodor 2021-08-04 16:11:32 +03:00 committed by GitHub
parent 70c5ea04b1
commit 4e43a31ec9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 8 deletions

View File

@ -142,7 +142,9 @@ class BottomSheet extends PureComponent<Props> {
<SafeAreaView
style = { [
styles.sheetItemContainer,
_styles.sheet,
renderHeader
? _styles.sheetHeader
: _styles.sheet,
style,
{
maxHeight: _height - 100

View File

@ -2,6 +2,7 @@
import { StyleSheet } from 'react-native';
import BaseTheme from '../../../../base/ui/components/BaseTheme.native';
import { ColorSchemeRegistry, schemeColor } from '../../../color-scheme';
import { BoxModel, ColorPalette } from '../../../styles';
import { PREFERRED_DIALOG_SIZE } from '../../constants';
@ -192,9 +193,16 @@ ColorSchemeRegistry.register('BottomSheet', {
* Bottom sheet's base style.
*/
sheet: {
backgroundColor: ColorPalette.black,
backgroundColor: BaseTheme.palette.ui02,
borderTopLeftRadius: 16,
borderTopRightRadius: 16
},
/**
* Bottom sheet's base style with header.
*/
sheetHeader: {
backgroundColor: BaseTheme.palette.ui02
}
});

View File

@ -159,13 +159,11 @@ function Thumbnail(props: Props) {
participant
}));
}
return null;
} else {
dispatch(openDialog(RemoteVideoMenu, {
participant
}));
}
dispatch(openDialog(RemoteVideoMenu, {
participant
}));
}, [ participant, dispatch ]);
return (