diff options
author | dan <dan.abramov@gmail.com> | 2024-01-25 22:06:28 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-25 14:06:28 -0800 |
commit | 10b1d16c8af8bdbcd2b7dfb546074f36654e7612 (patch) | |
tree | c8dd32a2d46aa175e71f37698888b2d637c30e17 /src/view/com/util/post-ctrls/RepostButton.tsx | |
parent | ef84f3a25e9ff69000a2bc4f9f8caa7966dc3910 (diff) | |
download | voidsky-10b1d16c8af8bdbcd2b7dfb546074f36654e7612.tar.zst |
Fix post controls tap areas (#2627)
Diffstat (limited to 'src/view/com/util/post-ctrls/RepostButton.tsx')
-rw-r--r-- | src/view/com/util/post-ctrls/RepostButton.tsx | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/view/com/util/post-ctrls/RepostButton.tsx b/src/view/com/util/post-ctrls/RepostButton.tsx index 8e70534dc..cc3db50c8 100644 --- a/src/view/com/util/post-ctrls/RepostButton.tsx +++ b/src/view/com/util/post-ctrls/RepostButton.tsx @@ -53,7 +53,7 @@ let RepostButton = ({ onPress={() => { requireAuth(() => onPressToggleRepostWrapper()) }} - style={[styles.container]} + style={[styles.btn, !big && styles.btnPad]} accessibilityRole="button" accessibilityLabel={`${ isReposted @@ -89,10 +89,16 @@ RepostButton = memo(RepostButton) export {RepostButton} const styles = StyleSheet.create({ - container: { + btn: { flexDirection: 'row', alignItems: 'center', }, + btnPad: { + paddingTop: 5, + paddingBottom: 5, + paddingLeft: 5, + paddingRight: 5, + }, reposted: { color: colors.green3, }, |