Commit 50f7c8870ccd7ef8771ac98be8f27c62fea59e60
float timestamp right
Ev Bogue committed on 4/21/2018, 2:10:14 AMParent: 05eef0d0f21b9e30181ff79499082aeb99b76e8a
Files changed
render.js | changed |
style.css | changed |
style.css.json | changed |
render.js | ||
---|---|---|
@@ -6,10 +6,10 @@ | ||
6 | 6 … | |
7 | 7 … | module.exports = function (msg) { |
8 | 8 … | if (msg.value.content.type == 'post') { |
9 | 9 … | 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) | |
13 | 13 … | ) |
14 | 14 … | } else { return } |
15 | 15 … | } |
style.css | ||
---|---|---|
@@ -13,4 +13,8 @@ | ||
13 | 13 … | display: block; |
14 | 14 … | margin-top: .25em; |
15 | 15 … | margin-bottom: .25em; |
16 | 16 … | } |
17 … | + | |
18 … | +.timestamp { | |
19 … | + float: right; | |
20 … | +} |
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" | |
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