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 (
<View style={{flex: 1}}>
<CenteredView style={[styles.header, pal.border]} sideBorders={isTablet}>
<CenteredView
style={[styles.header, pal.view, styles.container]}
sideBorders={isTablet}>
<Pressable
testID="viewHeaderBackOrMenuBtn"
onPress={onPressMenu}
@@ -593,6 +595,12 @@ export function SearchScreenMobile(
}
const styles = StyleSheet.create({
container: {
// @ts-ignore web only
position: 'sticky',
top: 0,
zIndex: 1,
},
header: {
flexDirection: 'row',
alignItems: 'center',
+4 -2
View File
@@ -76,7 +76,8 @@ const styles = StyleSheet.create({
backgroundColor: colors.black, // TODO
},
drawerMask: {
position: 'absolute',
// @ts-ignore web only
position: 'fixed',
width: '100%',
height: '100%',
top: 0,
@@ -85,7 +86,8 @@ const styles = StyleSheet.create({
},
drawerContainer: {
display: 'flex',
position: 'absolute',
// @ts-ignore web only
position: 'fixed',
top: 0,
left: 0,
height: '100%',