fix android and add horizontal padding

This commit is contained in:
Diego Mello 2023-05-12 10:15:18 -03:00
parent bcf70efc2e
commit 8e6c7be0d3
4 changed files with 12 additions and 10 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -21,7 +21,7 @@ const AtMention = React.memo(({ mention, mentions, username, navToRoomInfo, styl
const { theme } = useTheme();
if (mention === 'all' || mention === 'here') {
return (
<View style={{ marginBottom: -3 }}>
<View style={styles.mentionView}>
<Text
style={[
styles.mention,
@ -32,7 +32,7 @@ const AtMention = React.memo(({ mention, mentions, username, navToRoomInfo, styl
...style
]}
>
{`${mention}`}
{` ${mention} `}
</Text>
</View>
);
@ -67,9 +67,9 @@ const AtMention = React.memo(({ mention, mentions, username, navToRoomInfo, styl
if (user) {
const m = useRealName && user.name ? user.name : user.username;
return (
<View style={{ marginBottom: -3 }}>
<View style={styles.mentionView}>
<Text style={[styles.mention, mentionStyle, ...style]} onPress={handlePress}>
{`${m}`}
{` ${m} `}
</Text>
</View>
);

View File

@ -57,11 +57,13 @@ export default StyleSheet.create({
height: 30
},
temp: { opacity: 0.3 },
mentionView: {},
mention: {
fontSize: 16,
...sharedStyles.textSemibold,
borderRadius: 4,
overflow: 'hidden'
overflow: 'hidden',
marginBottom: -3
},
paragraph: {
marginTop: 0,