diff options
Diffstat (limited to 'src/screens/Search/components/ModuleHeader.tsx')
-rw-r--r-- | src/screens/Search/components/ModuleHeader.tsx | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/screens/Search/components/ModuleHeader.tsx b/src/screens/Search/components/ModuleHeader.tsx index c6411d1c0..9c208d2b2 100644 --- a/src/screens/Search/components/ModuleHeader.tsx +++ b/src/screens/Search/components/ModuleHeader.tsx @@ -18,7 +18,12 @@ export function Container({ style, children, headerHeight, -}: {children: React.ReactNode; headerHeight?: number} & ViewStyleProp) { + bottomBorder, +}: { + children: React.ReactNode + headerHeight?: number + bottomBorder?: boolean +} & ViewStyleProp) { const t = useTheme() return ( <View @@ -31,10 +36,9 @@ export function Container({ a.gap_sm, t.atoms.bg, headerHeight && web({position: 'sticky', top: headerHeight}), + bottomBorder && [a.border_b, t.atoms.border_contrast_low], style, ]}> - {/* Very non-scientific way to avoid small gap on scroll */} - <View style={[a.absolute, a.inset_0, t.atoms.bg, {top: -2}]} /> {children} </View> ) |