From 2f9dd131f9d2db2e5d66c20f1ff576f292cdd46a Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Fri, 18 Nov 2022 11:37:12 -0600 Subject: [PATCH] Spacing and sizing fixes --- src/view/com/post-thread/PostThreadItem.tsx | 14 +++++++------- src/view/com/post/Post.tsx | 2 +- src/view/com/posts/FeedItem.tsx | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/view/com/post-thread/PostThreadItem.tsx b/src/view/com/post-thread/PostThreadItem.tsx index fcfc99e7..0c4565c5 100644 --- a/src/view/com/post-thread/PostThreadItem.tsx +++ b/src/view/com/post-thread/PostThreadItem.tsx @@ -163,8 +163,8 @@ export const PostThreadItem = observer(function PostThreadItem({ style={styles.expandedInfoItem} href={repostsHref} title={repostsTitle}> - - + + {item.repostCount} {' '} {pluralize(item.repostCount, 'repost')} @@ -178,8 +178,8 @@ export const PostThreadItem = observer(function PostThreadItem({ style={styles.expandedInfoItem} href={upvotesHref} title={upvotesTitle}> - - + + {item.upvoteCount} {' '} {pluralize(item.upvoteCount, 'upvote')} @@ -193,8 +193,8 @@ export const PostThreadItem = observer(function PostThreadItem({ style={styles.expandedInfoItem} href={downvotesHref} title={downvotesTitle}> - - + + {item.downvoteCount} {' '} {pluralize(item.downvoteCount, 'downvote')} @@ -363,13 +363,13 @@ const styles = StyleSheet.create({ fontFamily: 'Helvetica Neue', fontSize: 17, lineHeight: 22.1, // 1.3 of 17px - minHeight: 28, }, postTextContainer: { flexDirection: 'row', alignItems: 'center', flexWrap: 'wrap', paddingBottom: 8, + minHeight: 36, }, postTextLarge: { fontSize: 24, diff --git a/src/view/com/post/Post.tsx b/src/view/com/post/Post.tsx index 005ea8c7..a5c08457 100644 --- a/src/view/com/post/Post.tsx +++ b/src/view/com/post/Post.tsx @@ -189,12 +189,12 @@ const styles = StyleSheet.create({ flexDirection: 'row', alignItems: 'center', flexWrap: 'wrap', + minHeight: 36, paddingBottom: 8, }, postText: { fontFamily: 'Helvetica Neue', fontSize: 17, lineHeight: 22.1, // 1.3 of 17px - minHeight: 28, }, }) diff --git a/src/view/com/posts/FeedItem.tsx b/src/view/com/posts/FeedItem.tsx index 0458b0c9..2898deff 100644 --- a/src/view/com/posts/FeedItem.tsx +++ b/src/view/com/posts/FeedItem.tsx @@ -196,11 +196,11 @@ const styles = StyleSheet.create({ alignItems: 'center', flexWrap: 'wrap', paddingBottom: 8, + minHeight: 36, }, postText: { fontFamily: 'Helvetica Neue', fontSize: 17, lineHeight: 22.1, // 1.3 of 17px - minHeight: 28, }, })