Commit a25307a21eac9511355938bbb1199cf253be979d
include all message types in logstream
Ev Bogue committed on 4/21/2018, 2:43:14 AMParent: c6c1604992a6dd8231bbb8bf42a6957286330677
Files changed
style.css | changed |
style.css.json | changed |
views.js | changed |
style.css | ||
---|---|---|
@@ -17,4 +17,10 @@ | ||
17 | 17 … | |
18 | 18 … | .timestamp { |
19 | 19 … | float: right; |
20 | 20 … | } |
21 … | + | |
22 … | +.avatar--small img { | |
23 … | + vertical-align: top; | |
24 … | + width: 2.5em; | |
25 … | + height: 2.5em; | |
26 … | +} |
style.css.json | ||
---|---|---|
@@ -1,1 +1,1 @@ | ||
1 | -".hyperscroll {\n width: 100%;\n}\n\n.hyperscroll > .content {\n max-width: 680px;\n margin-left: auto;\n margin-right: auto;\n}\n\n\n.message {\n display: block;\n margin-top: .25em;\n margin-bottom: .25em;\n}\n\n.timestamp {\n float: right;\n}\n" | |
1 … | +".hyperscroll {\n width: 100%;\n}\n\n.hyperscroll > .content {\n max-width: 680px;\n margin-left: auto;\n margin-right: auto;\n}\n\n\n.message {\n display: block;\n margin-top: .25em;\n margin-bottom: .25em;\n}\n\n.timestamp {\n float: right;\n}\n\n.avatar--small img {\n vertical-align: top;\n width: 2.5em;\n height: 2.5em;\n}\n" |
views.js | ||
---|---|---|
@@ -16,11 +16,8 @@ | ||
16 | 16 … | |
17 | 17 … | function createStream (opts) { |
18 | 18 … | return pull( |
19 | 19 … | More(sbot.createLogStream, opts), |
20 | - pull.filter(function (data) { | |
21 | - return 'string' === typeof data.value.content.text | |
22 | - }), | |
23 | 20 … | pull.map(function (msg) { |
24 | 21 … | return h('div.message', render(msg)) |
25 | 22 … | }) |
26 | 23 … | ) |
Built with git-ssb-web