Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

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

Use consistent rendering of avis and post metas in threads

+15 -40
+15 -40
src/view/com/posts/FeedItem.tsx
··· 114 114 /> 115 115 ) : undefined} 116 116 <Link style={outerStyles} href={itemHref} title={itemTitle} noFeedback> 117 - {isChild && ( 118 - <View 119 - style={[ 120 - styles.topReplyLine, 121 - item._isThreadChild ? styles.topReplyLineSmallAvi : undefined, 122 - ]} 123 - /> 124 - )} 125 - {item._isThreadParent && ( 126 - <View 127 - style={[ 128 - styles.bottomReplyLine, 129 - item._isThreadChild ? styles.bottomReplyLineSmallAvi : undefined, 130 - ]} 131 - /> 132 - )} 117 + {isChild && <View style={[styles.topReplyLine]} />} 118 + {item._isThreadParent && <View style={[styles.bottomReplyLine]} />} 133 119 {item.repostedBy && ( 134 120 <Link 135 121 style={styles.includeReason} ··· 159 145 )} 160 146 <View style={styles.layout}> 161 147 <View style={styles.layoutAvi}> 162 - <Link 163 - href={authorHref} 164 - title={item.author.handle} 165 - style={item._isThreadChild ? {marginLeft: 10} : undefined}> 148 + <Link href={authorHref} title={item.author.handle}> 166 149 <UserAvatar 167 - size={item._isThreadChild ? 30 : 52} 150 + size={52} 168 151 displayName={item.author.displayName} 169 152 handle={item.author.handle} 170 153 avatar={item.author.avatar} ··· 172 155 </Link> 173 156 </View> 174 157 <View style={styles.layoutContent}> 175 - {!item._isThreadChild ? ( 176 - <PostMeta 177 - itemHref={itemHref} 178 - itemTitle={itemTitle} 179 - authorHref={authorHref} 180 - authorHandle={item.author.handle} 181 - authorDisplayName={item.author.displayName} 182 - timestamp={item.indexedAt} 183 - isAuthor={item.author.did === store.me.did} 184 - onCopyPostText={onCopyPostText} 185 - onDeletePost={onDeletePost} 186 - /> 187 - ) : undefined} 158 + <PostMeta 159 + itemHref={itemHref} 160 + itemTitle={itemTitle} 161 + authorHref={authorHref} 162 + authorHandle={item.author.handle} 163 + authorDisplayName={item.author.displayName} 164 + timestamp={item.indexedAt} 165 + isAuthor={item.author.did === store.me.did} 166 + onCopyPostText={onCopyPostText} 167 + onDeletePost={onDeletePost} 168 + /> 188 169 {!isChild && replyHref !== '' && ( 189 170 <View style={[s.flexRow, s.mb2, {alignItems: 'center'}]}> 190 171 <FontAwesomeIcon ··· 289 270 borderLeftWidth: 2, 290 271 borderLeftColor: colors.gray2, 291 272 }, 292 - topReplyLineSmallAvi: { 293 - height: TOP_REPLY_LINE_LENGTH + 10, 294 - }, 295 273 bottomReplyLine: { 296 274 position: 'absolute', 297 275 left: 34, ··· 299 277 bottom: 0, 300 278 borderLeftWidth: 2, 301 279 borderLeftColor: colors.gray2, 302 - }, 303 - bottomReplyLineSmallAvi: { 304 - top: 50, 305 280 }, 306 281 includeReason: { 307 282 flexDirection: 'row',