Commit b6ee22a69b019b21e0652f96fa87c75a452d6a4f
Handle empty description in about and align things to top
Anders Rune Jensen committed on 12/26/2017, 2:34:09 PMParent: 5dbcb1c1354e72b9f9db0d8e8cef9b89cee1989f
Files changed
render.js | changed |
render.js | ||
---|---|---|
@@ -122,9 +122,9 @@ | ||
122 | 122 | } |
123 | 123 | |
124 | 124 | opts.mentions = {}; |
125 | 125 | var figCaption = h('figcaption'); |
126 | - figCaption.innerHTML = 'Feed of ' + about.name + '<br>' + marked(String(about.description), opts.marked); | |
126 | + figCaption.innerHTML = 'Feed of ' + about.name + '<br>' + marked(String(about.description || ''), opts.marked); | |
127 | 127 | return pull( |
128 | 128 | pull.map(renderMsg.bind(this, opts, '')), |
129 | 129 | wrap(toolTipTop() + '<main>' + |
130 | 130 | h('article', |
@@ -220,9 +220,9 @@ | ||
220 | 220 | article > header > figure > img { |
221 | 221 | border-radius: 2px; margin-right: 10px; |
222 | 222 | } |
223 | 223 | article > header > figure > figcaption { |
224 | - display: flex; flex-direction: column; justify-content: space-around; | |
224 | + display: flex; flex-direction: column; | |
225 | 225 | } |
226 | 226 | .ssb-avatar-name { font-size: 1.2em; font-weight: bold; } |
227 | 227 | time a { color: #868e96; } |
228 | 228 | .ssb-avatar-name, time a { |
Built with git-ssb-web