git ssb

2+

ev / mvd



Commit 50f7c8870ccd7ef8771ac98be8f27c62fea59e60

float timestamp right

Ev Bogue committed on 4/21/2018, 2:10:14 AM
Parent: 05eef0d0f21b9e30181ff79499082aeb99b76e8a

Files changed

render.jschanged
style.csschanged
style.css.jsonchanged
render.jsView
@@ -6,10 +6,10 @@
66
77 module.exports = function (msg) {
88 if (msg.value.content.type == 'post') {
99 return h('div.message__content',
10- h('span.timestamp', h('a', {href: msg.key}, human(new Date(msg.value.timestamp)))),
11- avatar.name(msg.value.author),
12- msg.value.content.text
10 + h('span.avatar', h('a', {href: '#' + msg.value.author}, avatar.name(msg.value.author))),
11 + h('span.timestamp', h('a', {href: '#' + msg.key}, human(new Date(msg.value.timestamp)))),
12 + h('div.message__body', msg.value.content.text)
1313 )
1414 } else { return }
1515 }
style.cssView
@@ -13,4 +13,8 @@
1313 display: block;
1414 margin-top: .25em;
1515 margin-bottom: .25em;
1616 }
17 +
18 +.timestamp {
19 + float: right;
20 +}
style.css.jsonView
@@ -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"
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"

Built with git-ssb-web