Merge pull request #3816 from MetaMask/kumavis-patch-2

identicon - set blockies height and width to identicon diameter
feature/default_network_editable
Dan Finlay 7 years ago committed by GitHub
commit a180fb0320
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      ui/app/components/identicon.js

@ -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…
Cancel
Save