Fix sizing of the leftnav new post btn (#2248)

zio/stable
Paul Frazee 2023-12-28 15:47:39 -08:00 committed by GitHub
parent 759d3f11b8
commit 709b0b6002
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 23 additions and 18 deletions

View File

@ -239,9 +239,10 @@ function ComposeBtn() {
return null return null
} }
return ( return (
<View style={styles.newPostBtnContainer}>
<TouchableOpacity <TouchableOpacity
disabled={isFetchingHandle} disabled={isFetchingHandle}
style={[styles.newPostBtn]} style={styles.newPostBtn}
onPress={onPressCompose} onPress={onPressCompose}
accessibilityRole="button" accessibilityRole="button"
accessibilityLabel={_(msg`New post`)} accessibilityLabel={_(msg`New post`)}
@ -257,6 +258,7 @@ function ComposeBtn() {
<Trans>New Post</Trans> <Trans>New Post</Trans>
</Text> </Text>
</TouchableOpacity> </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',