aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Finlay <542863+danfinlay@users.noreply.github.com>2018-04-01 00:31:03 +0800
committerGitHub <noreply@github.com>2018-04-01 00:31:03 +0800
commita180fb03209bdbc4df9645a665108a8cd8788a5a (patch)
treec20e47290e2b170d49d4c617152718f1220f5a80
parentd699c9b8b44813f40362a3da7953ac5ce81a969f (diff)
parent9f7b63bb6a03d79a00a8e47b7b8866bbba7bb810 (diff)
downloadtangerine-wallet-browser-a180fb03209bdbc4df9645a665108a8cd8788a5a.tar
tangerine-wallet-browser-a180fb03209bdbc4df9645a665108a8cd8788a5a.tar.gz
tangerine-wallet-browser-a180fb03209bdbc4df9645a665108a8cd8788a5a.tar.bz2
tangerine-wallet-browser-a180fb03209bdbc4df9645a665108a8cd8788a5a.tar.lz
tangerine-wallet-browser-a180fb03209bdbc4df9645a665108a8cd8788a5a.tar.xz
tangerine-wallet-browser-a180fb03209bdbc4df9645a665108a8cd8788a5a.tar.zst
tangerine-wallet-browser-a180fb03209bdbc4df9645a665108a8cd8788a5a.zip
Merge pull request #3816 from MetaMask/kumavis-patch-2
identicon - set blockies height and width to identicon diameter
-rw-r--r--ui/app/components/identicon.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/ui/app/components/identicon.js b/ui/app/components/identicon.js
index 7cc5a4de0..dce9b0449 100644
--- a/ui/app/components/identicon.js
+++ b/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)
}