git ssb

2+

ev / git-ssb-web (fork)



forked from cel / git-ssb-web

Commit 95bb5a1f3abfe002849f2fa6d2cab8ea24bba6ed

Improve line wrapping on comparison commit log

Try to make the author + commit title fit on one line
Charles Lehner committed on 7/26/2016, 3:48:20 AM
Parent: 2ad0196e8b9972306535f04ebe1f9821a913c758

Files changed

lib/repos/pulls.jschanged
static/styles.csschanged
lib/repos/pulls.jsView
@@ -444,9 +444,10 @@
444444 '</th><tr>'
445445 currentDay = day
446446 return dateRow + '<tr>' +
447447 '<td>' + u.escape(commit.author.name) + '</td>' +
448- '<td>' + u.link(commitPath, commit.title) + '</td>' +
448+ '<td class="commit-title">' +
449+ u.link(commitPath, commit.title) + '</td>' +
449450 '<td>' + u.link(commitPath, commitIdShort, true) + '</td>' +
450451 '</tr>'
451452 })
452453 ))
static/styles.cssView
@@ -440,10 +440,18 @@
440440 }
441441
442442 .compare-commits td:first-child {
443443 padding-left: 2ex;
444+ white-space: nowrap;
445+ text-overflow: ellipsis;
446+ overflow: hidden;
447+ max-width: 10em;
444448 }
445449
450+.commit-title {
451+ word-break: break-all;
452+}
453+
446454 .pr-tab-links {
447455 margin: .5em 0 0.25em;
448456 }
449457

Built with git-ssb-web