diff --git a/src/view/com/search/SearchResults.tsx b/src/view/com/search/SearchResults.tsx index ca6a0dba26..74d6e2ef08 100644 --- a/src/view/com/search/SearchResults.tsx +++ b/src/view/com/search/SearchResults.tsx @@ -14,6 +14,7 @@ import { import {Text} from 'view/com/util/text/Text' import {usePalette} from 'lib/hooks/usePalette' import {s} from 'lib/styles' +import {isDesktopWeb} from 'platform/detection' const SECTIONS = ['Posts', 'Users'] @@ -24,7 +25,12 @@ export const SearchResults = observer(({model}: {model: SearchUIModel}) => { (props: RenderTabBarFnProps) => { return ( - + ) }, @@ -33,8 +39,12 @@ export const SearchResults = observer(({model}: {model: SearchUIModel}) => { return ( - - + + + + + + ) }) @@ -60,7 +70,7 @@ const PostResults = observer(({model}: {model: SearchUIModel}) => { } return ( - + {model.posts.map(post => ( { const styles = StyleSheet.create({ tabBar: { borderBottomWidth: 1, + position: 'absolute', + zIndex: 1, + left: 0, + right: 0, + top: 0, + flexDirection: 'column', + alignItems: 'center', + backgroundColor: 'white', }, empty: { paddingHorizontal: 14, paddingVertical: 16, }, + results: { + paddingTop: isDesktopWeb ? 50 : 42, + }, })