Fixes to layout
This commit is contained in:
@@ -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',
|
||||||
|
|||||||
@@ -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%',
|
||||||
|
|||||||
Reference in New Issue
Block a user