aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/identicon.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/app/components/identicon.js')
-rw-r--r--ui/app/components/identicon.js19
1 files changed, 16 insertions, 3 deletions
diff --git a/ui/app/components/identicon.js b/ui/app/components/identicon.js
index 9e9b82aae..c1dc0fb5c 100644
--- a/ui/app/components/identicon.js
+++ b/ui/app/components/identicon.js
@@ -32,9 +32,22 @@ IdenticonComponent.prototype.render = function () {
return address
? (
useBlockie
- ? h(BlockiesIdenticon, {
- seed: address,
- })
+ ? h('div', {
+ className: `${className} identicon`,
+ style: {
+ display: 'flex',
+ alignItems: 'center',
+ justifyContent: 'center',
+ height: diameter,
+ width: diameter,
+ borderRadius: diameter / 2,
+ overflow: 'hidden',
+ },
+ }, [
+ h(BlockiesIdenticon, {
+ seed: address
+ })
+ ])
: h('div', {
className: `${className} identicon`,
key: 'identicon-' + address,