git ssb

9+

cel / ssb-viewer



Commit b6ee22a69b019b21e0652f96fa87c75a452d6a4f

Handle empty description in about and align things to top

Anders Rune Jensen committed on 12/26/2017, 2:34:09 PM
Parent: 5dbcb1c1354e72b9f9db0d8e8cef9b89cee1989f

Files changed

render.jschanged
render.jsView
@@ -122,9 +122,9 @@
122122 }
123123
124124 opts.mentions = {};
125125 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);
127127 return pull(
128128 pull.map(renderMsg.bind(this, opts, '')),
129129 wrap(toolTipTop() + '<main>' +
130130 h('article',
@@ -220,9 +220,9 @@
220220 article > header > figure > img {
221221 border-radius: 2px; margin-right: 10px;
222222 }
223223 article > header > figure > figcaption {
224- display: flex; flex-direction: column; justify-content: space-around;
224 + display: flex; flex-direction: column;
225225 }
226226 .ssb-avatar-name { font-size: 1.2em; font-weight: bold; }
227227 time a { color: #868e96; }
228228 .ssb-avatar-name, time a {

Built with git-ssb-web