Fixes to layout

This commit is contained in:
Dan Abramov
2023-12-08 00:58:44 +00:00
parent 163c2d25c1
commit 2ab2f8ab5a
2 changed files with 13 additions and 3 deletions
+9 -1
View File
@@ -493,7 +493,9 @@ export function SearchScreenMobile(
return ( return (
<View style={{flex: 1}}> <View style={{flex: 1}}>
<CenteredView style={[styles.header, pal.border]} sideBorders={isTablet}> <CenteredView
style={[styles.header, pal.view, styles.container]}
sideBorders={isTablet}>
<Pressable <Pressable
testID="viewHeaderBackOrMenuBtn" testID="viewHeaderBackOrMenuBtn"
onPress={onPressMenu} onPress={onPressMenu}
@@ -593,6 +595,12 @@ export function SearchScreenMobile(
} }
const styles = StyleSheet.create({ const styles = StyleSheet.create({
container: {
// @ts-ignore web only
position: 'sticky',
top: 0,
zIndex: 1,
},
header: { header: {
flexDirection: 'row', flexDirection: 'row',
alignItems: 'center', alignItems: 'center',
+4 -2
View File
@@ -76,7 +76,8 @@ const styles = StyleSheet.create({
backgroundColor: colors.black, // TODO backgroundColor: colors.black, // TODO
}, },
drawerMask: { drawerMask: {
position: 'absolute', // @ts-ignore web only
position: 'fixed',
width: '100%', width: '100%',
height: '100%', height: '100%',
top: 0, top: 0,
@@ -85,7 +86,8 @@ const styles = StyleSheet.create({
}, },
drawerContainer: { drawerContainer: {
display: 'flex', display: 'flex',
position: 'absolute', // @ts-ignore web only
position: 'fixed',
top: 0, top: 0,
left: 0, left: 0,
height: '100%', height: '100%',