From 9652d994dd207585fb1b8f3452382478f204f70a Mon Sep 17 00:00:00 2001 From: John Fawcett Date: Mon, 3 Apr 2023 12:32:35 -0500 Subject: [PATCH] Fix click targets for post controls (#332) (#363) * Fix click targets for post controls (#332) * Add padding to the right side of the post controls --------- Co-authored-by: Paul Frazee --- src/view/com/util/PostCtrls.tsx | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/view/com/util/PostCtrls.tsx b/src/view/com/util/PostCtrls.tsx index 6904928f..4497e705 100644 --- a/src/view/com/util/PostCtrls.tsx +++ b/src/view/com/util/PostCtrls.tsx @@ -184,7 +184,7 @@ export function PostCtrls(opts: PostCtrlsOpts) { return ( - + - + - + - + {opts.big ? undefined : ( )} + {/* used for adding pad to the right side */} + ) } @@ -328,10 +330,13 @@ export function PostCtrls(opts: PostCtrlsOpts) { const styles = StyleSheet.create({ ctrls: { flexDirection: 'row', + justifyContent: 'space-between', }, ctrl: { flexDirection: 'row', alignItems: 'center', + padding: 5, + margin: -5, }, ctrlIconReposted: { color: colors.green3,