avatar size

This commit is contained in:
AlphaX-Projects 2022-01-24 15:40:25 +01:00 committed by GitHub
parent 0cbe8fd31e
commit 5b444455e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -60,6 +60,14 @@ class NameRegistration extends LitElement {
color:#333;
font-weight: 400;
}
img {
border-radius: 25%;
witdh: 100%;
max-width: 42px;
height: 100%;
max-height: 42px;
}
`
}
@ -143,7 +151,7 @@ class NameRegistration extends LitElement {
const myNode = window.parent.reduxStore.getState().app.nodeConfig.knownNodes[window.parent.reduxStore.getState().app.nodeConfig.node]
const nodeUrl = myNode.protocol + '://' + myNode.domain + ':' + myNode.port
const url = `${nodeUrl}/arbitrary/THUMBNAIL/${name}/qortal_avatar?apiKey=${this.getApiKey()}`;
return html`<img src="${url}" style="width:100%;" onerror="this.onerror=null;this.style.display='none';">`
return html`<img src="${url}" onerror="this.onerror=null; this.src='/img/incognito.png';">`
}
renderAvatarButton(nameObj) {