fix zap width

This commit is contained in:
Alejandro Gomez 2023-02-12 23:12:26 +01:00 committed by Kieran
parent a29bd45ceb
commit a1432edc1f
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941
1 changed files with 3 additions and 3 deletions

View File

@ -84,8 +84,8 @@ const Zap = ({ zap, showZapped = true }: { zap: ParsedZap; showZapped?: boolean
return valid && zapper ? (
<div className="zap note card">
<div className="header">
<ProfileImage pubkey={zapper} />
{p !== pubKey && showZapped && <ProfileImage pubkey={p} />}
<ProfileImage autoWidth={false} pubkey={zapper} />
{p !== pubKey && showZapped && <ProfileImage autoWidth={false} pubkey={p} />}
<div className="amount">
<span className="amount-number">
<FormattedMessage {...messages.Sats} values={{ n: formatShort(amount) }} />
@ -125,7 +125,7 @@ export const ZapsSummary = ({ zaps }: ZapsSummaryProps) => {
{amount && (
<div className={`top-zap`}>
<div className="summary">
{zapper && <ProfileImage pubkey={zapper} />}
{zapper && <ProfileImage autoWidth={false} pubkey={zapper} />}
{restZaps.length > 0 && <FormattedMessage {...messages.Others} values={{ n: restZaps.length }} />}{" "}
<FormattedMessage {...messages.OthersZapped} values={{ n: restZaps.length }} />
</div>