spacing for urls, clickable lnurl

This commit is contained in:
Alejandro Gomez
2023-01-15 23:34:15 +01:00
parent fd0ce62428
commit bb2d7950fe
2 changed files with 15 additions and 12 deletions

View File

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

View File

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