From ff68e5b85a3042d008a06cd3e9b2e760d8c159af Mon Sep 17 00:00:00 2001
From: Paul Frazee <pfrazee@gmail.com>
Date: Fri, 18 Nov 2022 10:48:18 -0600
Subject: Fix avatar click target in posts

---
 src/view/com/post-thread/PostThreadItem.tsx | 32 ++++++++++++++++-------------
 1 file changed, 18 insertions(+), 14 deletions(-)

(limited to 'src/view/com/post-thread/PostThreadItem.tsx')

diff --git a/src/view/com/post-thread/PostThreadItem.tsx b/src/view/com/post-thread/PostThreadItem.tsx
index b7656702a..6c2f77030 100644
--- a/src/view/com/post-thread/PostThreadItem.tsx
+++ b/src/view/com/post-thread/PostThreadItem.tsx
@@ -99,13 +99,15 @@ export const PostThreadItem = observer(function PostThreadItem({
     return (
       <View style={styles.outer}>
         <View style={styles.layout}>
-          <Link style={styles.layoutAvi} href={authorHref} title={authorTitle}>
-            <UserAvatar
-              size={50}
-              displayName={item.author.displayName}
-              handle={item.author.handle}
-            />
-          </Link>
+          <View style={styles.layoutAvi}>
+            <Link href={authorHref} title={authorTitle}>
+              <UserAvatar
+                size={50}
+                displayName={item.author.displayName}
+                handle={item.author.handle}
+              />
+            </Link>
+          </View>
           <View style={styles.layoutContent}>
             <View style={[styles.meta, {paddingTop: 5, paddingBottom: 0}]}>
               <Link
@@ -255,13 +257,15 @@ export const PostThreadItem = observer(function PostThreadItem({
           </View>
         )}
         <View style={styles.layout}>
-          <Link style={styles.layoutAvi} href={authorHref} title={authorTitle}>
-            <UserAvatar
-              size={50}
-              displayName={item.author.displayName}
-              handle={item.author.handle}
-            />
-          </Link>
+          <View style={styles.layoutAvi}>
+            <Link href={authorHref} title={authorTitle}>
+              <UserAvatar
+                size={50}
+                displayName={item.author.displayName}
+                handle={item.author.handle}
+              />
+            </Link>
+          </View>
           <View style={styles.layoutContent}>
             <PostMeta
               itemHref={itemHref}
-- 
cgit 1.4.1

