Fix post controls tap areas (#2627)

This commit is contained in:
dan 2024-01-25 22:06:28 +00:00 committed by GitHub
parent ef84f3a25e
commit 10b1d16c8a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 87 additions and 67 deletions

View file

@ -69,7 +69,8 @@ export const RepostButton = ({
const inner = (
<View
style={[
styles.container,
styles.btn,
!big && styles.btnPad,
(isReposted
? styles.reposted
: defaultControlColor) as StyleProp<ViewStyle>,
@ -109,11 +110,17 @@ export const RepostButton = ({
}
const styles = StyleSheet.create({
container: {
btn: {
flexDirection: 'row',
alignItems: 'center',
gap: 4,
},
btnPad: {
paddingTop: 5,
paddingBottom: 5,
paddingLeft: 5,
paddingRight: 5,
},
reposted: {
color: colors.green3,
},