spacing for urls, clickable lnurl

This commit is contained in:
Alejandro Gomez 2023-01-15 23:34:15 +01:00
parent fd0ce62428
commit bb2d7950fe
No known key found for this signature in database
GPG Key ID: 4DF39E566658C817
2 changed files with 15 additions and 12 deletions

View File

@ -105,11 +105,17 @@
.profile .website {
color: var(--highlight);
margin-bottom: 4px;
margin: 6px 0;
}
.profile .lnurl {
color: var(--highlight);
margin: 6px 0;
cursor: pointer;
}
.profile .lnurl:hover {
text-decoration: underline;
}
.profile .btn-icon {
@ -128,11 +134,6 @@
text-overflow: ellipsis;
}
.profile .lnurl::before {
content: '⚡️ ';
font-size: 10px;
}
.profile .details-wrapper {
display: flex;
flex-direction: column;

View File

@ -67,12 +67,14 @@ export default function ProfilePage() {
</div>
)}
{lnurl ? <div className="lnurl f-ellipsis">
{lnurl}
<div className="btn btn-icon" onClick={(e) => setShowLnQr(true)}>
<FontAwesomeIcon icon={faQrcode} size="lg" />
</div>
</div> : null}
{lnurl && (
<>
<span className="lnurl f-ellipsis" onClick={(e) => setShowLnQr(true)}>
{lnurl}
</span>
</>
)}
<LNURLTip svc={lnurl} show={showLnQr} onClose={() => setShowLnQr(false)} />
</div>
)