diff --git a/src/components/Post/Embed/ExternalEmbed/ExternalPlayer.tsx b/src/components/Post/Embed/ExternalEmbed/ExternalPlayer.tsx index 2597ee61f..3c666e84a 100644 --- a/src/components/Post/Embed/ExternalEmbed/ExternalPlayer.tsx +++ b/src/components/Post/Embed/ExternalEmbed/ExternalPlayer.tsx @@ -126,9 +126,11 @@ function Player({ export function ExternalPlayer({ link, params, + preview, }: { link: AppBskyEmbedExternal.ViewExternal params: EmbedPlayerParams + preview?: boolean }) { const t = useTheme() const navigation = useNavigation() @@ -235,10 +237,12 @@ export function ExternalPlayer({ void style?: StyleProp hideAlt?: boolean + preview?: boolean }) => { const {_} = useLingui() const t = useTheme() @@ -48,10 +50,12 @@ export const ExternalEmbed = ({ const imageCdnHost = useImageCdnHost() const niceUrl = toNiceDomain(link.uri) const imageUri = link.thumb - ? applyImageTransforms(link.thumb, { - imageCdnHost, - format: thumbnailFormat, - }) + ? preview + ? link.thumb + : applyImageTransforms(link.thumb, { + imageCdnHost, + format: thumbnailFormat, + }) : undefined const embedPlayerParams = useMemo(() => { const params = parseEmbedPlayerFromUrl(link.uri) @@ -126,7 +130,11 @@ export const ExternalEmbed = ({ {embedPlayerParams?.isGif ? ( ) : embedPlayerParams ? ( - + ) : undefined} void - disabled?: boolean - } - buttonAlign?: 'left' | 'center' }) { const t = useTheme() @@ -169,23 +160,6 @@ function EmptyState({ )} {children} - - {button && ( - - - - )} @@ -208,6 +182,10 @@ function SearchResultsFooter({ return } + if (!hasNextPage) { + return + } + return ( - {hasNextPage ? 'Load more' : 'Load more'} + Load more @@ -453,16 +430,7 @@ let SearchScreenPostResults = ({ } /> ) : ( - } - buttonAlign="left" - button={{ - label: l`Load more`, - text: l`Load more`, - onPress: onEndReached, - disabled: isFetchingNextPage, - }} - /> + } /> )} ) : ( @@ -582,16 +550,7 @@ let SearchScreenUserResults = ({ } /> ) : ( - } - buttonAlign="left" - button={{ - label: l`Load more`, - text: l`Load more`, - onPress: onEndReached, - disabled: isFetchingNextPage || !hasSession, - }} - /> + } /> )} ) : ( diff --git a/src/view/com/composer/ExternalEmbed.tsx b/src/view/com/composer/ExternalEmbed.tsx index ecd22d7c3..7a5e3f03f 100644 --- a/src/view/com/composer/ExternalEmbed.tsx +++ b/src/view/com/composer/ExternalEmbed.tsx @@ -53,7 +53,7 @@ export const ExternalEmbedGif = ({ {linkInfo ? ( - + ) : error ? ( @@ -113,6 +113,7 @@ export const ExternalEmbedLink = ({ thumb: data.thumb?.source.path, }} hideAlt + preview /> ) } else if (data.kind === 'feed') {