From 29a092a9257c6122180905e6bfb6eb81696837a4 Mon Sep 17 00:00:00 2001 From: xmflsct Date: Mon, 19 Dec 2022 23:58:03 +0100 Subject: [PATCH] Some visual fixes based on feedback --- src/components/Parse/HTML.tsx | 14 ++------------ src/screens/Compose/Root/Actions.tsx | 2 +- 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/src/components/Parse/HTML.tsx b/src/components/Parse/HTML.tsx index 78c18578..4652fa10 100644 --- a/src/components/Parse/HTML.tsx +++ b/src/components/Parse/HTML.tsx @@ -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 ? ( - - ) : null} + {!shouldBeTag ? '...' : null} ) } diff --git a/src/screens/Compose/Root/Actions.tsx b/src/screens/Compose/Root/Actions.tsx index f872fd6e..ab3bdff5 100644 --- a/src/screens/Compose/Root/Actions.tsx +++ b/src/screens/Compose/Root/Actions.tsx @@ -167,7 +167,7 @@ const ComposeActions: React.FC = () => { }} style={styles.button} onPress={attachmentOnPress} - children={} + children={} />