Fix sizing of the leftnav new post btn (#2248)
parent
759d3f11b8
commit
709b0b6002
|
@ -239,24 +239,26 @@ function ComposeBtn() {
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
<TouchableOpacity
|
<View style={styles.newPostBtnContainer}>
|
||||||
disabled={isFetchingHandle}
|
<TouchableOpacity
|
||||||
style={[styles.newPostBtn]}
|
disabled={isFetchingHandle}
|
||||||
onPress={onPressCompose}
|
style={styles.newPostBtn}
|
||||||
accessibilityRole="button"
|
onPress={onPressCompose}
|
||||||
accessibilityLabel={_(msg`New post`)}
|
accessibilityRole="button"
|
||||||
accessibilityHint="">
|
accessibilityLabel={_(msg`New post`)}
|
||||||
<View style={styles.newPostBtnIconWrapper}>
|
accessibilityHint="">
|
||||||
<ComposeIcon2
|
<View style={styles.newPostBtnIconWrapper}>
|
||||||
size={19}
|
<ComposeIcon2
|
||||||
strokeWidth={2}
|
size={19}
|
||||||
style={styles.newPostBtnLabel}
|
strokeWidth={2}
|
||||||
/>
|
style={styles.newPostBtnLabel}
|
||||||
</View>
|
/>
|
||||||
<Text type="button" style={styles.newPostBtnLabel}>
|
</View>
|
||||||
<Trans>New Post</Trans>
|
<Text type="button" style={styles.newPostBtnLabel}>
|
||||||
</Text>
|
<Trans>New Post</Trans>
|
||||||
</TouchableOpacity>
|
</Text>
|
||||||
|
</TouchableOpacity>
|
||||||
|
</View>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -512,6 +514,9 @@ const styles = StyleSheet.create({
|
||||||
fontSize: 14,
|
fontSize: 14,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
newPostBtnContainer: {
|
||||||
|
flexDirection: 'row',
|
||||||
|
},
|
||||||
newPostBtn: {
|
newPostBtn: {
|
||||||
flexDirection: 'row',
|
flexDirection: 'row',
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
|
|
Loading…
Reference in New Issue