diff options
author | Ansh <anshnanda10@gmail.com> | 2023-10-25 09:54:52 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-25 09:54:52 -0700 |
commit | ee80cae75f25da33f6527c3df16c90319eeaf0bc (patch) | |
tree | 27f9bffbd242067c6a16f50bd2bb1f991f4ac350 /src | |
parent | 1781b3aab737a83898dac450daa1d19beb96bb38 (diff) | |
download | voidsky-ee80cae75f25da33f6527c3df16c90319eeaf0bc.tar.zst |
add scroll indicator on web to profile suggested follows card (#1724)
Diffstat (limited to 'src')
-rw-r--r-- | src/view/com/profile/ProfileHeaderSuggestedFollows.tsx | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/view/com/profile/ProfileHeaderSuggestedFollows.tsx b/src/view/com/profile/ProfileHeaderSuggestedFollows.tsx index c5b187fb3..cf759ddd1 100644 --- a/src/view/com/profile/ProfileHeaderSuggestedFollows.tsx +++ b/src/view/com/profile/ProfileHeaderSuggestedFollows.tsx @@ -1,5 +1,5 @@ import React from 'react' -import {View, StyleSheet, ScrollView, Pressable} from 'react-native' +import {View, StyleSheet, Pressable, ScrollView} from 'react-native' import Animated, { useSharedValue, withTiming, @@ -26,6 +26,7 @@ import {sanitizeHandle} from 'lib/strings/handles' import {makeProfileLink} from 'lib/routes/links' import {Link} from 'view/com/util/Link' import {useAnalytics} from 'lib/analytics/analytics' +import {isWeb} from 'platform/detection' const OUTER_PADDING = 10 const INNER_PADDING = 14 @@ -100,7 +101,6 @@ export function ProfileHeaderSuggestedFollows({ backgroundColor: pal.viewLight.backgroundColor, height: '100%', paddingTop: INNER_PADDING / 2, - paddingBottom: INNER_PADDING, }}> <View style={{ @@ -130,11 +130,15 @@ export function ProfileHeaderSuggestedFollows({ </View> <ScrollView - horizontal - showsHorizontalScrollIndicator={false} + horizontal={true} + showsHorizontalScrollIndicator={isWeb} + persistentScrollbar={true} + scrollIndicatorInsets={{bottom: 0}} + scrollEnabled={true} contentContainerStyle={{ alignItems: 'flex-start', paddingLeft: INNER_PADDING / 2, + paddingBottom: INNER_PADDING, }}> {isLoading ? ( <> |