fix android and add horizontal padding
This commit is contained in:
parent
bcf70efc2e
commit
8e6c7be0d3
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -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>
|
||||
);
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue