Skip to content

Commit 3ea5d86

Browse files
CirnoTsilverwind
andauthored
Fix message wrapping on PR commit list (#11616)
* Fix message wrapping on PR commit list * Update templates/repo/commits_list_small.tmpl Co-authored-by: silverwind <[email protected]>
1 parent 464b583 commit 3ea5d86

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

templates/repo/commits_list_small.tmpl

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,8 @@
4747
{{end}}
4848
</span>
4949

50-
<span class="message-wrapper">
51-
{{ $commitLink:= printf "%s/%s/%s/commit/%s" AppSubUrl $.comment.Issue.PullRequest.BaseRepo.OwnerName $.comment.Issue.PullRequest.BaseRepo.Name .ID }}
52-
<span class="mono commit-summary{{if gt .ParentCount 1}} grey text{{end}}" title="{{.Summary}}">{{RenderCommitMessageLinkSubject .Message ($.comment.Issue.PullRequest.BaseRepo.Link|Escape) $commitLink $.comment.Issue.PullRequest.BaseRepo.ComposeMetas}}</span>
53-
</span>
50+
{{ $commitLink:= printf "%s/%s/%s/commit/%s" AppSubUrl $.comment.Issue.PullRequest.BaseRepo.OwnerName $.comment.Issue.PullRequest.BaseRepo.Name .ID }}
51+
<span class="mono commit-summary {{if gt .ParentCount 1}} grey text{{end}}" title="{{.Summary}}">{{RenderCommitMessageLinkSubject .Message ($.comment.Issue.PullRequest.BaseRepo.Link|Escape) $commitLink $.comment.Issue.PullRequest.BaseRepo.ComposeMetas}}</span>
5452
{{if IsMultilineCommitMessage .Message}}
5553
<button class="basic compact mini ui icon button commit-button"><i class="ellipsis horizontal icon"></i></button>
5654
{{end}}

0 commit comments

Comments
 (0)