From 83c447c64b6339b9b2b98e3e35d22d2ef95ea611 Mon Sep 17 00:00:00 2001 From: cel Date: Sat, 6 May 2017 20:27:38 -1000 Subject: Add fallback image sizes --- lib/render.js | 2 ++ lib/serve.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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) diff --git a/lib/serve.js b/lib/serve.js index 183c8c3..8e63ff5 100644 --- a/lib/serve.js +++ b/lib/serve.js @@ -1384,7 +1384,7 @@ Serve.prototype.composer = function (opts, cb) { h('code', '@' + mention.name), ': ', h('input', {name: 'mention_name', type: 'hidden', value: mention.name}), - h('input.id-input', {name: 'mention_id', + h('input.id-input', {name: 'mention_id', size: 60, value: mention.id, placeholder: 'id'})) })) ] : '', -- cgit v1.2.3