diff options
author | Cirno the Strongest <1447794+CirnoT@users.noreply.github.com> | 2020-05-24 00:05:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-24 01:05:20 +0300 |
commit | ac3c4677707b7cec3faa42fbf8b5417be193a0ac (patch) | |
tree | 185ea7f7fabad9a346a4507272371cd87dbab790 /templates/repo/commits_list_small.tmpl | |
parent | 31df012968bd0acb3ed6748c7bf0f99d8ecc4031 (diff) | |
download | gitea-ac3c4677707b7cec3faa42fbf8b5417be193a0ac.tar.gz gitea-ac3c4677707b7cec3faa42fbf8b5417be193a0ac.zip |
Fix styling and padding for commit list on PR view (#11588)
* Fix styling and padding for commit list on PR view
* fix bold on author
Diffstat (limited to 'templates/repo/commits_list_small.tmpl')
-rw-r--r-- | templates/repo/commits_list_small.tmpl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/templates/repo/commits_list_small.tmpl b/templates/repo/commits_list_small.tmpl index 1450cdafbc..fa564ca86b 100644 --- a/templates/repo/commits_list_small.tmpl +++ b/templates/repo/commits_list_small.tmpl @@ -1,9 +1,10 @@ {{ $r:= List .Commits}} {{ $index := 0}} +<div class="timeline-item commits-list"> {{range $r}} {{ $tag := printf "%s-%d" $.HashTag $index }} {{ $index = Add $index 1}} - <div class="timeline-item event small-line-spacing" id="{{$tag}}"> + <div class="singular-commit" id="{{$tag}}"> <span class="badge badge-commit">{{svg "octicon-git-commit" 16}}</span> {{if .User}} <a class="ui avatar image" href="{{AppSubUrl}}/{{.User.Name}}"><img src="{{.User.RelAvatarLink}}" alt=""/></a> @@ -42,7 +43,7 @@ <span class="message-wrapper"> {{ $commitLink:= printf "%s/%s/%s/commit/%s" AppSubUrl $.Issue.PullRequest.BaseRepo.OwnerName $.Issue.PullRequest.BaseRepo.Name .ID }} - <span class="commit-summary has-emoji{{if gt .ParentCount 1}} grey text{{end}}" title="{{.Summary}}">{{RenderCommitMessageLinkSubject .Message ($.Issue.PullRequest.BaseRepo.Link|Escape) $commitLink $.Issue.PullRequest.BaseRepo.ComposeMetas}}</span> + <span class="mono commit-summary has-emoji{{if gt .ParentCount 1}} grey text{{end}}" title="{{.Summary}}">{{RenderCommitMessageLinkSubject .Message ($.Issue.PullRequest.BaseRepo.Link|Escape) $commitLink $.Issue.PullRequest.BaseRepo.ComposeMetas}}</span> </span> {{if IsMultilineCommitMessage .Message}} <button class="basic compact mini ui icon button commit-button"><i class="ellipsis horizontal icon"></i></button> @@ -55,3 +56,4 @@ {{end}} </div> {{end}} +</div> |