Fix wrapping for <AttachmentLink /> (#7272)

This commit is contained in:
Oliver 2024-05-21 09:07:06 +10:00 committed by GitHub
parent e93d9c4a74
commit 921bf91500
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -72,7 +72,7 @@ export function AttachmentLink({
}, [host, attachment, external]); }, [host, attachment, external]);
return ( return (
<Group justify="left" gap="sm"> <Group justify="left" gap="sm" wrap="nowrap">
{external ? <IconLink /> : attachmentIcon(attachment)} {external ? <IconLink /> : attachmentIcon(attachment)}
<Anchor href={url} target="_blank" rel="noopener noreferrer"> <Anchor href={url} target="_blank" rel="noopener noreferrer">
{text} {text}