mirror of
https://github.com/tooot-app/app
synced 2025-04-26 16:08:58 +02:00
Some visual fixes based on feedback
This commit is contained in:
parent
6e7ebef99a
commit
29a092a925
@ -102,7 +102,7 @@ const renderNode = ({
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
const domain = href?.split(new RegExp(/:\/\/(.[^\/]+)/))
|
const domain = href?.split(new RegExp(/:\/\/(.[^\/]+\/.{3})/))
|
||||||
// Need example here
|
// Need example here
|
||||||
const content = node.children && node.children[0] && node.children[0].data
|
const content = node.children && node.children[0] && node.children[0].data
|
||||||
const shouldBeTag = tags && tags.filter(tag => `#${tag.name}` === content).length > 0
|
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]}
|
{content && content !== href ? content : showFullLink ? href : domain?.[1]}
|
||||||
{!shouldBeTag ? (
|
{!shouldBeTag ? '...' : null}
|
||||||
<Icon
|
|
||||||
color={colors.blue}
|
|
||||||
name='ExternalLink'
|
|
||||||
size={adaptedFontsize}
|
|
||||||
style={{
|
|
||||||
marginLeft: StyleConstants.Spacing.XS,
|
|
||||||
transform: [{ translateY: Platform.OS === 'ios' ? -1 : 2 }]
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
) : null}
|
|
||||||
</CustomText>
|
</CustomText>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
@ -167,7 +167,7 @@ const ComposeActions: React.FC = () => {
|
|||||||
}}
|
}}
|
||||||
style={styles.button}
|
style={styles.button}
|
||||||
onPress={attachmentOnPress}
|
onPress={attachmentOnPress}
|
||||||
children={<Icon name='Aperture' size={24} color={attachmentColor} />}
|
children={<Icon name='Camera' size={24} color={attachmentColor} />}
|
||||||
/>
|
/>
|
||||||
<Pressable
|
<Pressable
|
||||||
accessibilityRole='button'
|
accessibilityRole='button'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user