Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Web fixes (#517)

* Fix scroll behaviors on web

* Remove headers on web to avoid scroll overflow

* Fix follow button press in cards

authored by

Paul Frazee and committed by
GitHub
c7600fe0 5085861b

+29 -8
+2
src/view/com/post-thread/PostLikedBy.tsx
··· 78 78 </View> 79 79 )} 80 80 extraData={view.isLoading} 81 + // @ts-ignore our .web version only -prf 82 + desktopFixedHeight 81 83 /> 82 84 ) 83 85 })
+2
src/view/com/post-thread/PostRepostedBy.tsx
··· 89 89 </View> 90 90 )} 91 91 extraData={view.isLoading} 92 + // @ts-ignore our .web version only -prf 93 + desktopFixedHeight 92 94 /> 93 95 ) 94 96 })
+2
src/view/com/profile/ProfileFollowers.tsx
··· 92 92 </View> 93 93 )} 94 94 extraData={view.isLoading} 95 + // @ts-ignore our .web version only -prf 96 + desktopFixedHeight 95 97 /> 96 98 ) 97 99 })
+2
src/view/com/profile/ProfileFollows.tsx
··· 89 89 </View> 90 90 )} 91 91 extraData={view.isLoading} 92 + // @ts-ignore our .web version only -prf 93 + desktopFixedHeight 92 94 /> 93 95 ) 94 96 })
+17 -4
src/view/com/util/forms/Button.tsx
··· 1 1 import React from 'react' 2 2 import { 3 + GestureResponderEvent, 3 4 StyleProp, 4 5 StyleSheet, 5 6 TextStyle, 6 - TouchableOpacity, 7 + Pressable, 7 8 ViewStyle, 8 9 } from 'react-native' 9 10 import {Text} from '../text/Text' 10 11 import {useTheme} from 'lib/ThemeContext' 11 12 import {choose} from 'lib/functions' 13 + 14 + type Event = 15 + | React.MouseEvent<HTMLAnchorElement, MouseEvent> 16 + | GestureResponderEvent 12 17 13 18 export type ButtonType = 14 19 | 'primary' ··· 114 119 }, 115 120 }, 116 121 ) 122 + const onPressWrapped = React.useCallback( 123 + (event: Event) => { 124 + event.stopPropagation() 125 + event.preventDefault() 126 + onPress?.() 127 + }, 128 + [onPress], 129 + ) 117 130 return ( 118 - <TouchableOpacity 131 + <Pressable 119 132 style={[typeOuterStyle, styles.outer, style]} 120 - onPress={onPress} 133 + onPress={onPressWrapped} 121 134 testID={testID}> 122 135 {label ? ( 123 136 <Text type="button" style={[typeLabelStyle, labelStyle]}> ··· 126 139 ) : ( 127 140 children 128 141 )} 129 - </TouchableOpacity> 142 + </Pressable> 130 143 ) 131 144 } 132 145
+1 -1
src/view/screens/PostLikedBy.tsx
··· 22 22 23 23 return ( 24 24 <View> 25 - <ViewHeader title="Liked by" showOnDesktop /> 25 + <ViewHeader title="Liked by" /> 26 26 <PostLikedByComponent uri={uri} /> 27 27 </View> 28 28 )
+1 -1
src/view/screens/PostRepostedBy.tsx
··· 22 22 23 23 return ( 24 24 <View> 25 - <ViewHeader title="Reposted by" showOnDesktop /> 25 + <ViewHeader title="Reposted by" /> 26 26 <PostRepostedByComponent uri={uri} /> 27 27 </View> 28 28 )
+1 -1
src/view/screens/ProfileFollowers.tsx
··· 20 20 21 21 return ( 22 22 <View> 23 - <ViewHeader title="Followers" showOnDesktop /> 23 + <ViewHeader title="Followers" /> 24 24 <ProfileFollowersComponent name={name} /> 25 25 </View> 26 26 )
+1 -1
src/view/screens/ProfileFollows.tsx
··· 20 20 21 21 return ( 22 22 <View> 23 - <ViewHeader title="Following" showOnDesktop /> 23 + <ViewHeader title="Following" /> 24 24 <ProfileFollowsComponent name={name} /> 25 25 </View> 26 26 )