display zap summary in note footer

This commit is contained in:
Alejandro Gomez 2023-02-03 22:55:03 +01:00
parent eb77e91b57
commit d0bc7f83fb
No known key found for this signature in database
GPG Key ID: 4DF39E566658C817
2 changed files with 8 additions and 15 deletions

View File

@ -238,6 +238,7 @@ export default function NoteFooter(props: NoteFooterProps) {
} }
return ( return (
<>
<div className="footer"> <div className="footer">
<div className="footer-reactions"> <div className="footer-reactions">
{tipButton()} {tipButton()}
@ -266,5 +267,9 @@ export default function NoteFooter(props: NoteFooterProps) {
/> />
<LNURLTip svc={author?.lud16 || author?.lud06} onClose={() => setTip(false)} show={tip} author={author?.pubkey} note={ev.Id} /> <LNURLTip svc={author?.lud16 || author?.lud06} onClose={() => setTip(false)} show={tip} author={author?.pubkey} note={ev.Id} />
</div> </div>
<div className="zaps-container">
<ZapsSummary zaps={zaps} />
</div>
</>
) )
} }

View File

@ -19,11 +19,11 @@
color: var(--highlight); color: var(--highlight);
} }
.amount { .zap .amount {
font-size: 18px; font-size: 18px;
} }
.amount:before { .zap .amount:before {
content: '⚡️ '; content: '⚡️ ';
} }
@ -40,7 +40,7 @@
} }
.top-zap { .top-zap {
font-size: 12px; font-size: 14px;
border: none; border: none;
margin: 0; margin: 0;
} }
@ -61,26 +61,14 @@
height: 21px; height: 21px;
} }
.top-zap .profile-name {
font-size: 12px;
}
.top-zap .nip05 { .top-zap .nip05 {
display: none; display: none;
} }
.top-zap .amount {
font-size: 12px;
}
.amount-number { .amount-number {
font-weight: bold; font-weight: bold;
} }
.rest-zaps {
font-size: 12px;
}
.rest-zaps:before { .rest-zaps:before {
content: ", "; content: ", ";
} }