From 36dc1c752556b8413dfb4d8fae6f930888489224 Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Sun, 18 Dec 2022 16:43:18 -0600 Subject: [PATCH] Reduce confusing visual feedback while scrolling --- src/view/com/notifications/FeedItem.tsx | 5 +++-- src/view/com/post-thread/PostRepostedBy.tsx | 3 ++- src/view/com/post-thread/PostThreadItem.tsx | 2 +- src/view/com/post-thread/PostVotedBy.tsx | 3 ++- src/view/com/post/Post.tsx | 6 +++++- src/view/com/posts/FeedItem.tsx | 2 +- src/view/com/profile/ProfileCard.tsx | 6 +++++- src/view/com/profile/ProfileFollowers.tsx | 3 ++- src/view/com/profile/ProfileFollows.tsx | 3 ++- src/view/com/util/Link.tsx | 20 ++++++++++++++++++-- src/view/com/util/PostEmbeds.tsx | 2 +- src/view/screens/Settings.tsx | 5 ++++- 12 files changed, 46 insertions(+), 14 deletions(-) diff --git a/src/view/com/notifications/FeedItem.tsx b/src/view/com/notifications/FeedItem.tsx index 70c4f52163..e504ff39bd 100644 --- a/src/view/com/notifications/FeedItem.tsx +++ b/src/view/com/notifications/FeedItem.tsx @@ -50,7 +50,7 @@ export const FeedItem = observer(function FeedItem({ if (item.isReply || item.isMention) { return ( - + + title={itemTitle} + noFeedback> {icon === 'UpIconSolid' ? ( diff --git a/src/view/com/post-thread/PostRepostedBy.tsx b/src/view/com/post-thread/PostRepostedBy.tsx index 1f238f5b39..a58644cb73 100644 --- a/src/view/com/post-thread/PostRepostedBy.tsx +++ b/src/view/com/post-thread/PostRepostedBy.tsx @@ -86,7 +86,8 @@ const RepostedByItem = ({item}: {item: RepostedByViewItemModel}) => { + title={item.handle} + noFeedback> + {!item.replyingTo && item.record.reply && ( )} diff --git a/src/view/com/post-thread/PostVotedBy.tsx b/src/view/com/post-thread/PostVotedBy.tsx index 7b798482a0..5857f3792e 100644 --- a/src/view/com/post-thread/PostVotedBy.tsx +++ b/src/view/com/post-thread/PostVotedBy.tsx @@ -86,7 +86,8 @@ const LikedByItem = ({item}: {item: VotesViewItemModel}) => { + title={item.actor.handle} + noFeedback> + {showReplyLine && } diff --git a/src/view/com/posts/FeedItem.tsx b/src/view/com/posts/FeedItem.tsx index 984fde2893..74edad3652 100644 --- a/src/view/com/posts/FeedItem.tsx +++ b/src/view/com/posts/FeedItem.tsx @@ -109,7 +109,7 @@ export const FeedItem = observer(function FeedItem({ style={{marginTop: 2}} /> ) : undefined} - + {isChild && } {item._isThreadParent && ( void }) { return ( - + { + title={item.handle} + noFeedback> { + title={item.handle} + noFeedback> href: string title?: string children?: React.ReactNode + noFeedback?: boolean }) { const store = useStores() const onPress = () => { @@ -29,12 +33,24 @@ export const Link = observer(function Link({ const onLongPress = () => { handleLink(store, href, true) } + if (noFeedback) { + return ( + + + {children ? children : {title || 'link'}} + + + ) + } return ( + delayPressIn={50} + style={style}> {children ? children : {title || 'link'}} ) diff --git a/src/view/com/util/PostEmbeds.tsx b/src/view/com/util/PostEmbeds.tsx index ae9212a720..5e1d570b68 100644 --- a/src/view/com/util/PostEmbeds.tsx +++ b/src/view/com/util/PostEmbeds.tsx @@ -97,7 +97,7 @@ export function PostEmbeds({ const externalEmbed = embed as AppBskyEmbedExternal.Presented const link = externalEmbed.external return ( - + {link.thumb ? ( ) : undefined} diff --git a/src/view/screens/Settings.tsx b/src/view/screens/Settings.tsx index a1281e0d77..732b47683e 100644 --- a/src/view/screens/Settings.tsx +++ b/src/view/screens/Settings.tsx @@ -37,7 +37,10 @@ export const Settings = observer(function Settings({ Sign out - +