Commit 6b0a3dda632ec4d0055d5862ecad77fc64ab8e4d
working basic bootstrap display, still glitchy
Joran committed on 9/27/2016, 12:20:39 AMParent: ae8ef55d5accde645cce7a92673912744ed77fb0
Files changed
modules/avatar-image.js | changed |
modules/message.js | changed |
style.css | changed |
modules/avatar-image.js | ||
---|---|---|
@@ -79,9 +79,10 @@ | ||
79 | 79 … | if(classes && 'string' === typeof classes) classes = '.avatar--'+classes |
80 | 80 … | |
81 | 81 … | var img = visualize(new Buffer(author.substring(1), 'base64'), 256) |
82 | 82 … | ;(classes || '').split('.').filter(Boolean).forEach(function (c) { |
83 | - img.classList.add(c) | |
83 … | + // TODO: Had to disable this for some reason | |
84 … | + // img.classList.add(c) | |
84 | 85 … | }) |
85 | 86 … | |
86 | 87 … | function go () { |
87 | 88 … | if(avatars[author]) img.src = blob_url(avatars[author].image) |
@@ -92,17 +93,4 @@ | ||
92 | 93 … | else go() |
93 | 94 … | |
94 | 95 … | return img |
95 | 96 … | } |
96 | - | |
97 | - | |
98 | - | |
99 | - | |
100 | - | |
101 | - | |
102 | - | |
103 | - | |
104 | - | |
105 | - | |
106 | - | |
107 | - | |
108 | - |
modules/message.js | ||
---|---|---|
@@ -51,9 +51,9 @@ | ||
51 | 51 … | // }) |
52 | 52 … | // ) |
53 | 53 … | var msg = h('div.panel.panel-default', h('div.panel-body', h('div.media', |
54 | 54 … | h('div.media-left', |
55 | - avatar(author, 'thumbnail media-object') | |
55 … | + avatar(author, 'avatar--thumbnail media-object') | |
56 | 56 … | ), |
57 | 57 … | h('div.media-body', |
58 | 58 … | h('h4.media-heading', |
59 | 59 … | h('a', {href:'#'+author}, avatar_name(author)), |
Built with git-ssb-web