Browse Source

fix: truncate lightning address

imwald
codytseng 12 months ago
parent
commit
df4eb10802
  1. 4
      src/pages/secondary/ProfilePage/index.tsx

4
src/pages/secondary/ProfilePage/index.tsx

@ -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">

Loading…
Cancel
Save