aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorkumavis <kumavis@users.noreply.github.com>2018-03-31 12:45:49 +0800
committerGitHub <noreply@github.com>2018-03-31 12:45:49 +0800
commit9f7b63bb6a03d79a00a8e47b7b8866bbba7bb810 (patch)
treec20e47290e2b170d49d4c617152718f1220f5a80 /ui
parentd699c9b8b44813f40362a3da7953ac5ce81a969f (diff)
downloadtangerine-wallet-browser-9f7b63bb6a03d79a00a8e47b7b8866bbba7bb810.tar
tangerine-wallet-browser-9f7b63bb6a03d79a00a8e47b7b8866bbba7bb810.tar.gz
tangerine-wallet-browser-9f7b63bb6a03d79a00a8e47b7b8866bbba7bb810.tar.bz2
tangerine-wallet-browser-9f7b63bb6a03d79a00a8e47b7b8866bbba7bb810.tar.lz
tangerine-wallet-browser-9f7b63bb6a03d79a00a8e47b7b8866bbba7bb810.tar.xz
tangerine-wallet-browser-9f7b63bb6a03d79a00a8e47b7b8866bbba7bb810.tar.zst
tangerine-wallet-browser-9f7b63bb6a03d79a00a8e47b7b8866bbba7bb810.zip
identicon - set blockies height and width to identicon diameter
Diffstat (limited to 'ui')
-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)
}