Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

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

Hotfix feed sizing (#510)

* Fix home feed sizing on web

* Bump api@0.2.8

authored by

Paul Frazee and committed by
GitHub
bbc2ab33 38eb2990

+19 -6
+1 -1
package.json
··· 22 22 "e2e:run": "detox test --configuration ios.sim.debug --take-screenshots all" 23 23 }, 24 24 "dependencies": { 25 - "@atproto/api": "0.2.7", 25 + "@atproto/api": "0.2.8", 26 26 "@bam.tech/react-native-image-resizer": "^3.0.4", 27 27 "@braintree/sanitize-url": "^6.0.2", 28 28 "@expo/webpack-config": "^18.0.1",
+2
src/view/com/posts/Feed.tsx
··· 179 179 onEndReachedThreshold={0.6} 180 180 removeClippedSubviews={true} 181 181 contentOffset={{x: 0, y: headerOffset * -1}} 182 + // @ts-ignore our .web version only -prf 183 + desktopFixedHeight 182 184 /> 183 185 )} 184 186 </View>
+12 -1
src/view/com/util/Views.web.tsx
··· 25 25 import {addStyle, colors} from 'lib/styles' 26 26 import {usePalette} from 'lib/hooks/usePalette' 27 27 28 + interface AddedProps { 29 + desktopFixedHeight?: boolean 30 + } 31 + 28 32 export function CenteredView({ 29 33 style, 30 34 ...props ··· 38 42 contentContainerStyle, 39 43 style, 40 44 contentOffset, 45 + desktopFixedHeight, 41 46 ...props 42 - }: React.PropsWithChildren<FlatListProps<ItemT>>, 47 + }: React.PropsWithChildren<FlatListProps<ItemT> & AddedProps>, 43 48 ref: React.Ref<RNFlatList>, 44 49 ) { 45 50 const pal = usePalette('default') ··· 59 64 contentContainerStyle = addStyle(contentContainerStyle, { 60 65 paddingTop: Math.abs(contentOffset.y), 61 66 }) 67 + } 68 + if (desktopFixedHeight) { 69 + style = addStyle(style, styles.fixedHeight) 62 70 } 63 71 return ( 64 72 <RNFlatList ··· 121 129 }, 122 130 containerDark: { 123 131 backgroundColor: colors.gray7, 132 + }, 133 + fixedHeight: { 134 + height: '100vh', 124 135 }, 125 136 })
+4 -4
yarn.lock
··· 30 30 tlds "^1.234.0" 31 31 typed-emitter "^2.1.0" 32 32 33 - "@atproto/api@0.2.7": 34 - version "0.2.7" 35 - resolved "https://registry.yarnpkg.com/@atproto/api/-/api-0.2.7.tgz#ca917a8e7f5054c32c11ce09c82424fbe24112cd" 36 - integrity sha512-Sz+lLD5apC2f0FSClkElIrt4w+aLgzqJ/wqtFO7xuQH8+hGfxdfGuVIK5GEDQ7epeDlWvVhVSouP6ZdGSKKtSA== 33 + "@atproto/api@0.2.8": 34 + version "0.2.8" 35 + resolved "https://registry.yarnpkg.com/@atproto/api/-/api-0.2.8.tgz#92ed413804ecb43aaa45ec18afc93d6f2b28a689" 36 + integrity sha512-LfPgtf3UNg2W/AxHkJMJrLNT9QAD6bi16Sw5Zt3mgANrDnHWGygA7gRpeNdgVI+kFEhQfrIItemJvWLIB9BJDQ== 37 37 dependencies: 38 38 "@atproto/common-web" "*" 39 39 "@atproto/uri" "*"