mirror of
https://github.com/tooot-app/app
synced 2024-12-23 16:20:08 +01:00
Some visual fixes based on feedback
This commit is contained in:
parent
6e7ebef99a
commit
29a092a925
@ -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>
|
||||
)
|
||||
}
|
||||
|
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user