Some visual fixes based on feedback

This commit is contained in:
xmflsct 2022-12-19 23:58:03 +01:00
parent 6e7ebef99a
commit 29a092a925
2 changed files with 3 additions and 13 deletions

View File

@ -102,7 +102,7 @@ const renderNode = ({
)
}
} else {
const domain = href?.split(new RegExp(/:\/\/(.[^\/]+)/))
const domain = href?.split(new RegExp(/:\/\/(.[^\/]+\/.{3})/))
// Need example here
const content = node.children && node.children[0] && node.children[0].data
const shouldBeTag = tags && tags.filter(tag => `#${tag.name}` === content).length > 0
@ -128,17 +128,7 @@ const renderNode = ({
}}
>
{content && content !== href ? content : showFullLink ? href : domain?.[1]}
{!shouldBeTag ? (
<Icon
color={colors.blue}
name='ExternalLink'
size={adaptedFontsize}
style={{
marginLeft: StyleConstants.Spacing.XS,
transform: [{ translateY: Platform.OS === 'ios' ? -1 : 2 }]
}}
/>
) : null}
{!shouldBeTag ? '...' : null}
</CustomText>
)
}

View File

@ -167,7 +167,7 @@ const ComposeActions: React.FC = () => {
}}
style={styles.button}
onPress={attachmentOnPress}
children={<Icon name='Aperture' size={24} color={attachmentColor} />}
children={<Icon name='Camera' size={24} color={attachmentColor} />}
/>
<Pressable
accessibilityRole='button'