mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Merge pull request #3816 from MetaMask/kumavis-patch-2
identicon - set blockies height and width to identicon diameter
This commit is contained in:
commit
a180fb0320
@ -105,9 +105,8 @@ IdenticonComponent.prototype.componentDidUpdate = function () {
|
||||
function _generateBlockie (container, address, diameter) {
|
||||
const img = new Image()
|
||||
img.src = toDataUrl(address)
|
||||
const dia = !diameter || diameter < 50 ? 50 : diameter
|
||||
img.height = dia * 1.25
|
||||
img.width = dia * 1.25
|
||||
img.height = diameter
|
||||
img.width = diameter
|
||||
container.appendChild(img)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user