From 6d4431b777862c3608d256fc7b87ffdd701ef019 Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Mon, 16 Jan 2023 16:30:05 -0600 Subject: [PATCH] Spacing fixes --- src/view/com/post/Post.tsx | 2 +- src/view/com/posts/FeedItem.tsx | 12 ++++++++---- src/view/com/util/PostCtrls.tsx | 14 +++++++++++--- src/view/com/util/PostEmbeds.tsx | 13 +++++++------ src/view/com/util/PostMeta.tsx | 2 +- src/view/com/util/UserInfoText.tsx | 4 +++- 6 files changed, 31 insertions(+), 16 deletions(-) diff --git a/src/view/com/post/Post.tsx b/src/view/com/post/Post.tsx index 75ed8495..b451250e 100644 --- a/src/view/com/post/Post.tsx +++ b/src/view/com/post/Post.tsx @@ -160,7 +160,7 @@ export const Post = observer(function Post({ timestamp={item.post.indexedAt} /> {replyHref !== '' && ( - + {!isChild && replyHref !== '' && ( - + )} - + replyCount?: number repostCount?: number upvoteCount?: number @@ -102,7 +110,7 @@ export function PostCtrls(opts: PostCtrlsOpts) { } return ( - + )} diff --git a/src/view/com/util/PostEmbeds.tsx b/src/view/com/util/PostEmbeds.tsx index 611cedf5..a19dcb8d 100644 --- a/src/view/com/util/PostEmbeds.tsx +++ b/src/view/com/util/PostEmbeds.tsx @@ -31,7 +31,7 @@ export function PostEmbeds({ } if (embed.images.length === 4) { return ( - + img.thumb)} @@ -41,7 +41,7 @@ export function PostEmbeds({ ) } else if (embed.images.length === 3) { return ( - + img.thumb)} @@ -51,7 +51,7 @@ export function PostEmbeds({ ) } else if (embed.images.length === 2) { return ( - + img.thumb)} @@ -61,7 +61,7 @@ export function PostEmbeds({ ) } else { return ( - + openLightbox(0)} @@ -82,7 +82,7 @@ export function PostEmbeds({ {link.thumb ? ( ) : undefined} - + {link.title || link.uri} @@ -105,11 +105,12 @@ export function PostEmbeds({ const styles = StyleSheet.create({ imagesContainer: { marginTop: 4, - marginBottom: 6, }, extOuter: { padding: 10, borderWidth: 1, + borderRadius: 4, + marginTop: 4, }, extDescription: { marginTop: 4, diff --git a/src/view/com/util/PostMeta.tsx b/src/view/com/util/PostMeta.tsx index 6c150a67..8e1a900d 100644 --- a/src/view/com/util/PostMeta.tsx +++ b/src/view/com/util/PostMeta.tsx @@ -67,6 +67,6 @@ const styles = StyleSheet.create({ paddingRight: 5, }, maxWidth: { - maxWidth: '70%', + maxWidth: '80%', }, }) diff --git a/src/view/com/util/UserInfoText.tsx b/src/view/com/util/UserInfoText.tsx index 38d6d3d3..d9f8cbf2 100644 --- a/src/view/com/util/UserInfoText.tsx +++ b/src/view/com/util/UserInfoText.tsx @@ -62,7 +62,9 @@ export function UserInfoText({ ) } else if (profile) { inner = ( - {`${prefix || ''}${profile[attr]}`} + {`${prefix || ''}${ + profile[attr] || profile.handle + }`} ) } else { inner = (