Commit 591f5b731bb11a2356ab101d2f15710f484e218c
Add side menu title
Josiah Witt committed on 3/15/2018, 2:38:25 AMParent: 741ac0a148c2a18f2bc5d54ad7582e7c82430d2b
Files changed
modules/page/html/render/tag.js | changed |
modules/page/html/render/tag.js | ||
---|---|---|
@@ -47,18 +47,22 @@ | ||
47 | 47 … | ]) |
48 | 48 … | ] |
49 | 49 … | |
50 | 50 … | return h('div.SplitView', [ |
51 | - h('div.side', map( | |
52 | - tags, | |
53 | - tag => computed( | |
54 | - tag, | |
55 | - ({ tagId, tagName }) => | |
56 | - h('a', { | |
57 | - 'ev-click': () => selectedTagId.set(tagId) | |
58 | - }, api.tag.html.tag({ tagName, tagId }, null)) | |
51 … | + h('div.side', [ | |
52 … | + h('h2', 'Your Tags'), | |
53 … | + map( | |
54 … | + tags, | |
55 … | + tag => computed( | |
56 … | + tag, | |
57 … | + ({ tagId, tagName }) => | |
58 … | + h('a', { | |
59 … | + 'ev-click': () => selectedTagId.set(tagId), | |
60 … | + style: { 'margin-bottom': '.3rem', display: 'inline-block' } | |
61 … | + }, api.tag.html.tag({ tagName, tagId }, null)) | |
62 … | + ) | |
59 | 63 … | ) |
60 | - )), | |
64 … | + ]), | |
61 | 65 … | h('div.main', [ |
62 | 66 … | h('Scroller',[ |
63 | 67 … | h('h2', name), |
64 | 68 … | h('section.messages', [ |
Built with git-ssb-web