Commit 7371eb8da427f9783c833be6b0c8615874fed1d2
fix file width display for pull requests
mix irving committed on 10/9/2016, 11:29:42 AMParent: 03fddf861e3f80b369a338ba5adc6b18288c8ab3
Files changed
lib/repos/index.js | changed |
static/styles.css | changed |
lib/repos/index.js | |||
---|---|---|---|
@@ -40,10 +40,9 @@ | |||
40 | 40 … | pull( | |
41 | 41 … | read, | |
42 | 42 … | pull.map(function (row) { | |
43 | 43 … | 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>' | ||
46 | 45 … | }).join('') + '</tr>' : '' | |
47 | 46 … | }) | |
48 | 47 … | ), | |
49 | 48 … | pull.once('</table>') | |
@@ -478,9 +477,9 @@ | |||
478 | 477 … | var filePath = [repo.id, type, rev].concat(path, file.name) | |
479 | 478 … | return ['<i>' + (type == 'tree' ? '📁' : '📄') + '</i>', | |
480 | 479 … | u.link(filePath, file.name)] | |
481 | 480 … | }), | |
482 | - table('class="files"') | ||
481 … | + table('class="files w-100"') | ||
483 | 482 … | ) | |
484 | 483 … | ]) | |
485 | 484 … | } | |
486 | 485 … |
Built with git-ssb-web