From 6aa4f24110c9aaaec2ef257bacb02f379032ae18 Mon Sep 17 00:00:00 2001 From: cel Date: Fri, 3 Feb 2017 15:53:25 -0800 Subject: Allow non-square avatars --- lib/render-msg.js | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) (limited to 'lib/render-msg.js') diff --git a/lib/render-msg.js b/lib/render-msg.js index 8285121..f51f936 100644 --- a/lib/render-msg.js +++ b/lib/render-msg.js @@ -307,18 +307,12 @@ RenderMsg.prototype.about = function (cb) { ['identifies ', h('a', {href: this.toUrl(this.c.about)}, truncate(this.c.about, 10))], ' as ', this.c.name ? [h('ins', this.c.name), ' '] : '', - this.c.description ? h('div', {innerHTML: this.c.description}) : '', - img ? [ - h('br'), - h('a', {href: this.toUrl(img)}, - h('img', { + this.c.description ? h('div', {innerHTML: this.c.description}) : h('br'), + img ? h('a', {href: this.toUrl(img)}, + h('img.ssb-avatar-image', { src: this.render.imageUrl(img), - alt: img, - width: 64, - height: 64, - }) - ) - ] : '' + alt: ' ', + })) : '' ], cb) } -- cgit v1.2.3