aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-02-03 15:53:25 -0800
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-02-04 02:53:54 -0800
commit6aa4f24110c9aaaec2ef257bacb02f379032ae18 (patch)
tree9e4a6b1730e15dbeb58fe9e7989c529c32704fdd
parentb85860fda2946cbb2b29a5cee4bf0f27c3813e1e (diff)
downloadpatchfoo-6aa4f24110c9aaaec2ef257bacb02f379032ae18.tar.gz
patchfoo-6aa4f24110c9aaaec2ef257bacb02f379032ae18.zip
Allow non-square avatars
-rw-r--r--lib/render-msg.js16
-rw-r--r--static/styles.css7
2 files changed, 9 insertions, 14 deletions
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)
}
diff --git a/static/styles.css b/static/styles.css
index bd804e8..a0e4e14 100644
--- a/static/styles.css
+++ b/static/styles.css
@@ -46,13 +46,14 @@ footer {
.ssb-avatar-image {
width: 2em;
- height: 2em;
+ max-height: 2em;
vertical-align: top;
}
-.ssb-feed .ssb-avatar-image {
+.ssb-feed .ssb-avatar-image,
+.ssb-main .ssb-avatar-image {
width: 4em;
- height: 4em;
+ max-height: 8em;
}
h3.feed-name {