aboutsummaryrefslogtreecommitdiff
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
parentd437d4de396b37033f03626660b510d7b32e7377 (diff)
downloadpatchfoo-83c447c64b6339b9b2b98e3e35d22d2ef95ea611.tar.gz
patchfoo-83c447c64b6339b9b2b98e3e35d22d2ef95ea611.zip
Add fallback image sizes
-rw-r--r--lib/render.js2
-rw-r--r--lib/serve.js2
2 files changed, 3 insertions, 1 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)
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'}))
}))
] : '',