git ssb

30+

cel / git-ssb-web



Commit 7371eb8da427f9783c833be6b0c8615874fed1d2

fix file width display for pull requests

mix irving committed on 10/9/2016, 11:29:42 AM
Parent: 03fddf861e3f80b369a338ba5adc6b18288c8ab3

Files changed

lib/repos/index.jschanged
static/styles.csschanged
lib/repos/index.jsView
@@ -40,10 +40,9 @@
4040 pull(
4141 read,
4242 pull.map(function (row) {
4343 return row ? '<tr>' + row.map(function (cell, i) {
44- var className = (i>0) ? 'w-100' : ''
45- return '<td class="' + className +'">' + cell + '</td>'
44 + return '<td>' + cell + '</td>'
4645 }).join('') + '</tr>' : ''
4746 })
4847 ),
4948 pull.once('</table>')
@@ -478,9 +477,9 @@
478477 var filePath = [repo.id, type, rev].concat(path, file.name)
479478 return ['<i>' + (type == 'tree' ? '📁' : '📄') + '</i>',
480479 u.link(filePath, file.name)]
481480 }),
482- table('class="files"')
481 + table('class="files w-100"')
483482 )
484483 ])
485484 }
486485
static/styles.cssView
@@ -273,8 +273,9 @@
273273 }
274274
275275 .files td:first-child {
276276 padding: 0 1ex;
277 + width: .7rem;
277278 }
278279
279280 /* user page */
280281

Built with git-ssb-web