From 158945bbf6d7d920b4b940e5ac93aabf58266b13 Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Mon, 16 Jan 2023 16:54:35 -0600 Subject: [PATCH] More spacing and sizing tweaks, including larger post controls --- src/view/com/posts/FeedItem.tsx | 14 ++++++++++---- src/view/com/util/PostCtrls.tsx | 10 +++++----- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/src/view/com/posts/FeedItem.tsx b/src/view/com/posts/FeedItem.tsx index 626718ea..070c9c7c 100644 --- a/src/view/com/posts/FeedItem.tsx +++ b/src/view/com/posts/FeedItem.tsx @@ -142,9 +142,14 @@ export const FeedItem = observer(function ({ }> - + Reposted by{' '} {item.reasonRepost.by.displayName || item.reasonRepost.by.handle} @@ -283,7 +288,6 @@ const styles = StyleSheet.create({ }, outerSmallTop: { borderTopWidth: 0, - paddingTop: 8, }, outerNoBottom: { paddingBottom: 2, @@ -305,6 +309,7 @@ const styles = StyleSheet.create({ includeReason: { flexDirection: 'row', paddingLeft: 40, + marginTop: 2, marginBottom: 2, }, includeReasonIcon: { @@ -312,6 +317,7 @@ const styles = StyleSheet.create({ }, layout: { flexDirection: 'row', + marginTop: 1, }, layoutAvi: { width: 60, @@ -338,7 +344,7 @@ const styles = StyleSheet.create({ marginBottom: 6, }, ctrls: { - marginTop: 2, + marginTop: 4, }, viewFullThread: { paddingTop: 12, diff --git a/src/view/com/util/PostCtrls.tsx b/src/view/com/util/PostCtrls.tsx index 4c694a03..3d551e5b 100644 --- a/src/view/com/util/PostCtrls.tsx +++ b/src/view/com/util/PostCtrls.tsx @@ -35,7 +35,7 @@ interface PostCtrlsOpts { const redgray = '#7A6161' const sRedgray = {color: redgray} -const HITSLOP = {top: 5, left: 5, bottom: 5, right: 5} +const HITSLOP = {top: 2, left: 2, bottom: 2, right: 2} export function PostCtrls(opts: PostCtrlsOpts) { const interp1 = useAnimatedValue(0) @@ -137,7 +137,7 @@ export function PostCtrls(opts: PostCtrlsOpts) { opts.isReposted ? styles.ctrlIconReposted : styles.ctrlIcon } icon="retweet" - size={opts.big ? 22 : 17} + size={opts.big ? 22 : 19} /> {typeof opts.repostCount !== 'undefined' ? ( @@ -161,12 +161,12 @@ export function PostCtrls(opts: PostCtrlsOpts) { {opts.isUpvoted ? ( ) : ( )} @@ -194,7 +194,7 @@ export function PostCtrls(opts: PostCtrlsOpts) { onDeletePost={opts.onDeletePost}>