mirror of
https://github.com/Qortal/qortal-ui.git
synced 2025-04-24 03:47:53 +00:00
avatar size
This commit is contained in:
parent
0cbe8fd31e
commit
5b444455e4
@ -60,6 +60,14 @@ class NameRegistration extends LitElement {
|
|||||||
color:#333;
|
color:#333;
|
||||||
font-weight: 400;
|
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 myNode = window.parent.reduxStore.getState().app.nodeConfig.knownNodes[window.parent.reduxStore.getState().app.nodeConfig.node]
|
||||||
const nodeUrl = myNode.protocol + '://' + myNode.domain + ':' + myNode.port
|
const nodeUrl = myNode.protocol + '://' + myNode.domain + ':' + myNode.port
|
||||||
const url = `${nodeUrl}/arbitrary/THUMBNAIL/${name}/qortal_avatar?apiKey=${this.getApiKey()}`;
|
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) {
|
renderAvatarButton(nameObj) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user