From 82655f2ee3c208c2a0ab148dba1bccf884213375 Mon Sep 17 00:00:00 2001 From: Hailey Date: Fri, 1 Mar 2024 15:47:59 -0800 Subject: Few list tweaks on web (#3062) * share button only on native * update gttablet to be 1300px * improve web layout * change re-layout to mobile breakpoint * adjustable not found reason * don't show the borders on mobile web * slight padding for the spinner --- src/screens/Hashtag.tsx | 35 +++++++++++++++++++++-------------- 1 file changed, 21 insertions(+), 14 deletions(-) (limited to 'src/screens/Hashtag.tsx') diff --git a/src/screens/Hashtag.tsx b/src/screens/Hashtag.tsx index 794753ea3..09a1f2824 100644 --- a/src/screens/Hashtag.tsx +++ b/src/screens/Hashtag.tsx @@ -1,6 +1,6 @@ import React from 'react' import {ListRenderItemInfo, Pressable} from 'react-native' -import {atoms as a} from '#/alf' +import {atoms as a, useBreakpoints} from '#/alf' import {useFocusEffect} from '@react-navigation/native' import {useSetMinimalShellMode} from 'state/shell' import {ViewHeader} from 'view/com/util/ViewHeader' @@ -23,6 +23,7 @@ import {CenteredView} from 'view/com/util/Views' import {ArrowOutOfBox_Stroke2_Corner0_Rounded} from '#/components/icons/ArrowOutOfBox' import {shareUrl} from 'lib/sharing' import {HITSLOP_10} from 'lib/constants' +import {isNative} from 'platform/detection' const renderItem = ({item}: ListRenderItemInfo) => { return @@ -37,6 +38,7 @@ export default function HashtagScreen({ }: NativeStackScreenProps) { const {tag, author} = route.params const setMinimalShellMode = useSetMinimalShellMode() + const {gtMobile} = useBreakpoints() const {_} = useLingui() const [isPTR, setIsPTR] = React.useState(false) @@ -101,28 +103,33 @@ export default function HashtagScreen({ }, [isFetching, hasNextPage, error, fetchNextPage]) return ( - + ( - - - - )} + canGoBack + renderButton={ + isNative + ? () => ( + + + + ) + : undefined + } /> {!isLoading && posts.length > 0 && ( -- cgit 1.4.1