Commit 95bb5a1f3abfe002849f2fa6d2cab8ea24bba6ed
Improve line wrapping on comparison commit log
Try to make the author + commit title fit on one lineCharles Lehner committed on 7/26/2016, 3:48:20 AM
Parent: 2ad0196e8b9972306535f04ebe1f9821a913c758
Files changed
lib/repos/pulls.js | changed |
static/styles.css | changed |
lib/repos/pulls.js | ||
---|---|---|
@@ -444,9 +444,10 @@ | ||
444 | 444 | '</th><tr>' |
445 | 445 | currentDay = day |
446 | 446 | return dateRow + '<tr>' + |
447 | 447 | '<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>' + | |
449 | 450 | '<td>' + u.link(commitPath, commitIdShort, true) + '</td>' + |
450 | 451 | '</tr>' |
451 | 452 | }) |
452 | 453 | )) |
static/styles.css | ||
---|---|---|
@@ -440,10 +440,18 @@ | ||
440 | 440 | } |
441 | 441 | |
442 | 442 | .compare-commits td:first-child { |
443 | 443 | padding-left: 2ex; |
444 | + white-space: nowrap; | |
445 | + text-overflow: ellipsis; | |
446 | + overflow: hidden; | |
447 | + max-width: 10em; | |
444 | 448 | } |
445 | 449 | |
450 | +.commit-title { | |
451 | + word-break: break-all; | |
452 | +} | |
453 | + | |
446 | 454 | .pr-tab-links { |
447 | 455 | margin: .5em 0 0.25em; |
448 | 456 | } |
449 | 457 |
Built with git-ssb-web