Commit 3814f0bab283660b1d7e93e049986e2c4c211a90
tweak how mini messages are displayed
Ev Bogue committed on 10/25/2016, 7:23:43 PMParent: 460131a0bdbc9d7a6ec1fb20a08198f71cf9e233
Files changed
modules/like.js | changed |
modules/message.js | changed |
modules/like.js | ||
---|---|---|
@@ -14,9 +14,9 @@ | ||
14 | 14 … | exports.message_content_mini = function (msg, sbot) { |
15 | 15 … | if(msg.value.content.type !== 'vote') return |
16 | 16 … | var link = msg.value.content.vote.link |
17 | 17 … | return [ |
18 | - msg.value.content.vote.value > 0 ? 'Dug' : 'Undug', | |
18 … | + msg.value.content.vote.value > 0 ? 'dug' : 'undug', | |
19 | 19 … | ' ', message_link(link) |
20 | 20 … | ] |
21 | 21 … | } |
22 | 22 … |
modules/message.js | |||
---|---|---|---|
@@ -19,10 +19,9 @@ | |||
19 | 19 … | if (elMini) { | |
20 | 20 … | var div = h('div.message.message--mini', | |
21 | 21 … | h('div.row', | |
22 | 22 … | h('div', | |
23 | - avatar_link(msg.value.author, avatar_name(msg.value.author), ''), | ||
24 | - ' ', | ||
23 … | + avatar_link(msg.value.author, avatar_name(msg.value.author)), | ||
25 | 24 … | h('span.message_content', elMini)), | |
26 | 25 … | h('div.message_meta.row', message_meta(msg)) | |
27 | 26 … | ) | |
28 | 27 … | ) |
Built with git-ssb-web