From 09411967e85b519c092a97d18ac8b76b4716d0e5 Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Sun, 20 Nov 2022 11:45:31 -0600 Subject: [PATCH] Adjust post control sizing and alignment --- src/view/com/util/LoadingPlaceholder.tsx | 6 +++--- src/view/com/util/PostCtrls.tsx | 18 ++++++++---------- src/view/lib/icons.tsx | 4 +++- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/view/com/util/LoadingPlaceholder.tsx b/src/view/com/util/LoadingPlaceholder.tsx index b08e115951..ed94c55027 100644 --- a/src/view/com/util/LoadingPlaceholder.tsx +++ b/src/view/com/util/LoadingPlaceholder.tsx @@ -93,14 +93,14 @@ export function PostLoadingPlaceholder({ - + - + diff --git a/src/view/com/util/PostCtrls.tsx b/src/view/com/util/PostCtrls.tsx index 6d766951f7..b224750863 100644 --- a/src/view/com/util/PostCtrls.tsx +++ b/src/view/com/util/PostCtrls.tsx @@ -59,9 +59,9 @@ export function PostCtrls(opts: PostCtrlsOpts) { - {opts.replyCount} + {opts.replyCount} @@ -74,14 +74,14 @@ export function PostCtrls(opts: PostCtrlsOpts) { opts.isReposted ? styles.ctrlIconReposted : styles.ctrlIcon } icon="retweet" - size={18} + size={20} /> {opts.repostCount} @@ -95,14 +95,14 @@ export function PostCtrls(opts: PostCtrlsOpts) { {opts.isUpvoted ? ( ) : ( - + )} {opts.upvoteCount} @@ -116,12 +116,10 @@ export function PostCtrls(opts: PostCtrlsOpts) { const styles = StyleSheet.create({ ctrls: { flexDirection: 'row', - paddingRight: 20, }, ctrl: { flexDirection: 'row', alignItems: 'center', - paddingLeft: 4, paddingRight: 4, }, ctrlIcon: { diff --git a/src/view/lib/icons.tsx b/src/view/lib/icons.tsx index c160df3cc6..b3f52a62e9 100644 --- a/src/view/lib/icons.tsx +++ b/src/view/lib/icons.tsx @@ -221,9 +221,11 @@ export function UserGroupIcon({ export function UpIcon({ style, size, + strokeWidth = 1.3, }: { style?: StyleProp size?: string | number + strokeWidth: number }) { return (