Fix sticky offset, gear color (#5537)

This commit is contained in:
Eric Bailey
2024-09-30 16:04:04 -05:00
committed by GitHub
parent 669cdf222c
commit 26c09ff107
+5 -5
View File
@@ -624,7 +624,7 @@ export function SearchScreen(
* Arbitrary sizing, so guess and check, used for sticky header alignment and * Arbitrary sizing, so guess and check, used for sticky header alignment and
* sizing. * sizing.
*/ */
const headerHeight = 56 + (showFilters ? 40 : 0) const headerHeight = 64 + (showFilters ? 40 : 0)
useFocusEffect( useFocusEffect(
useNonReactiveCallback(() => { useNonReactiveCallback(() => {
@@ -838,18 +838,18 @@ export function SearchScreen(
<CenteredView <CenteredView
style={[ style={[
a.p_md, a.p_md,
a.pb_0, a.pb_sm,
a.gap_sm, a.gap_sm,
t.atoms.bg, t.atoms.bg,
web({ web({
height: headerHeight + a.mb_sm.marginBottom, height: headerHeight,
position: 'sticky', position: 'sticky',
top: 0, top: 0,
zIndex: 1, zIndex: 1,
}), }),
]} ]}
sideBorders={gtMobile}> sideBorders={gtMobile}>
<View style={[a.flex_row, a.gap_sm, a.mb_sm]}> <View style={[a.flex_row, a.gap_sm]}>
{!gtMobile && ( {!gtMobile && (
<Button <Button
testID="viewHeaderBackOrMenuBtn" testID="viewHeaderBackOrMenuBtn"
@@ -887,7 +887,7 @@ export function SearchScreen(
fill={ fill={
showFilters showFilters
? t.palette.primary_500 ? t.palette.primary_500
: t.atoms.text_contrast_low.color : t.atoms.text_contrast_medium.color
} }
/> />
</Button> </Button>