fix: 🐛

This commit is contained in:
codytseng
2025-01-23 12:01:27 +08:00
parent 86468e75cb
commit b15ce2c153
5 changed files with 26 additions and 34 deletions

View File

@@ -11,18 +11,18 @@ export default function Nip05({ pubkey }: { pubkey: string }) {
return (
nip05Name &&
nip05Domain && (
<div className="flex items-center space-x-1">
<div className="flex items-center space-x-1 truncate">
{nip05Name !== '_' ? (
<div className="text-sm text-muted-foreground truncate">@{nip05Name}</div>
) : null}
<a
href={`https://${nip05Domain}`}
target="_blank"
className={`flex items-center space-x-1 hover:underline ${nip05IsVerified ? 'text-highlight' : 'text-muted-foreground'}`}
className={`flex items-center space-x-1 hover:underline truncate ${nip05IsVerified ? 'text-highlight' : 'text-muted-foreground'}`}
rel="noreferrer"
>
{nip05IsVerified ? <BadgeCheck size={16} /> : <BadgeAlert size={16} />}
<div className="text-sm">{nip05Domain}</div>
<div className="text-sm truncate">{nip05Domain}</div>
</a>
</div>
)