fix: truncate lightning address

This commit is contained in:
codytseng
2025-03-26 18:24:20 +08:00
parent 83239eb6f0
commit df4eb10802

View File

@@ -119,8 +119,8 @@ const ProfilePage = forwardRef(({ id, index }: { id?: string; index?: number },
<Nip05 pubkey={pubkey} /> <Nip05 pubkey={pubkey} />
{lightningAddress && ( {lightningAddress && (
<div className="text-sm text-yellow-400 flex gap-1 items-center"> <div className="text-sm text-yellow-400 flex gap-1 items-center">
<Zap className="size-4" /> <Zap className="size-4 shrink-0" />
{lightningAddress} <div className="flex-1 max-w-fit w-0 truncate">{lightningAddress}</div>
</div> </div>
)} )}
<div className="flex gap-1 mt-1"> <div className="flex gap-1 mt-1">