fix: remove avatar from lightning address QR (#2509)

The avatar overlay made the QR code hard to scan, especially for
short lightning addresses. Without center content the QR also drops
back to a lower error correction level, improving scannability.

Fixes #2507

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Roland 2026-08-07 11:20:01 +07:00 committed by GitHub
parent 35d666d469
commit d94f6933f5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -9,7 +9,6 @@ import { Link } from "react-router";
import FirstChannelJitAlert from "src/components/FirstChannelJitAlert";
import Loading from "src/components/Loading";
import QRCode from "src/components/QRCode";
import UserAvatar from "src/components/UserAvatar";
import {
Accordion,
AccordionContent,
@ -39,7 +38,6 @@ export function ReceiveToLightning() {
value={me.lightning_address}
className="h-auto w-full"
frameType="lightning"
centerContent={<UserAvatar className="size-12 rounded-full" />}
/>
<div className="flex max-w-full items-center justify-center gap-1">
<p className="min-w-0 text-center font-medium text-lg break-all">