aboutsummaryrefslogtreecommitdiff
path: root/lib/render.js
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-05-06 20:27:38 -1000
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-05-09 19:44:34 -1000
commit83c447c64b6339b9b2b98e3e35d22d2ef95ea611 (patch)
tree00424a9baf8a55fac214712db272213927e1172e /lib/render.js
parentd437d4de396b37033f03626660b510d7b32e7377 (diff)
downloadpatchfoo-83c447c64b6339b9b2b98e3e35d22d2ef95ea611.tar.gz
patchfoo-83c447c64b6339b9b2b98e3e35d22d2ef95ea611.zip
Add fallback image sizes
Diffstat (limited to 'lib/render.js')
-rw-r--r--lib/render.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/render.js b/lib/render.js
index 36dba2f..aa2a6da 100644
--- a/lib/render.js
+++ b/lib/render.js
@@ -76,6 +76,7 @@ Render.prototype.emoji = function (emoji) {
h('img.ssb-emoji', {
src: this.opts.emoji_base + emoji + '.png',
alt: name,
+ height: 17,
title: name,
}) : name
}
@@ -166,6 +167,7 @@ Render.prototype.avatarImage = function (link, cb) {
if (!link) return cb(), ''
if (typeof link === 'string') link = {link: link}
var img = h('img.ssb-avatar-image', {
+ width: 72,
alt: ' '
})
if (link.image) gotAbout(null, link)