inline embed spacing

This commit is contained in:
Martti Malmi 2023-08-09 10:17:25 +03:00
parent 67e8c1404f
commit ec229788d8
4 changed files with 4 additions and 2 deletions

View File

@ -7,8 +7,7 @@ const Hashtag: Embed = {
component: ({ match }) => {
return (
<Link href={`/search/${encodeURIComponent(match)}`} className="link">
{' '}
{match}{' '}
{match}
</Link>
);
},

View File

@ -25,6 +25,7 @@ const InlineMention: Embed = {
if (type === 'p') {
return (
<Link href={`/${nip19.npubEncode(id)}`} className="link">
{' '}
<Name pub={id} hideBadge={true} />
</Link>
);

View File

@ -16,6 +16,7 @@ const NostrUser: Embed = {
return (
<>
<Link className="link" href={`/${data.pubkey}`}>
{' '}
<Name pub={data.pubkey} />
</Link>
</>

View File

@ -12,6 +12,7 @@ const NostrNpub: Embed = {
const pub = match.replace('@', '');
return (
<Link href={`/${pub}`} className="link">
{' '}
<Name pub={pub} hideBadge={true} />
</Link>
);