loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Improve commit record's ui in comment list (#26619)

Before:

![image](https://github.com/go-gitea/gitea/assets/18380374/795f9941-9989-4045-b0fc-d6dd0262269b)

![image](https://github.com/go-gitea/gitea/assets/18380374/f6505f5e-4248-456e-a98d-e714c6484b2f)

After:

![image](https://github.com/go-gitea/gitea/assets/18380374/321dda1e-6999-4851-afff-2e6c8d20367b)

![image](https://github.com/go-gitea/gitea/assets/18380374/182f18d1-2295-4004-852b-c0ebb498b411)

---------

Co-authored-by: silverwind <me@silverwind.io>
(cherry picked from commit ce085b26fc5076b36c55e6a0a30ba8f11105c0bf)

authored by

yp05327
silverwind
and committed by
Earl Warren
ed1798f6 989dc10c

+9 -13
+8 -8
templates/repo/issue/view_content/comments.tmpl
··· 148 148 </span> 149 149 {{if eq .RefAction 3}}</del>{{end}} 150 150 151 - <div class="detail"> 151 + <div class="detail flex-text-block"> 152 152 <span class="text grey muted-links"><a href="{{.RefIssueLink ctx}}"><b>{{.RefIssueTitle ctx}}</b> {{.RefIssueIdent ctx}}</a></span> 153 153 </div> 154 154 </div> ··· 164 164 {{ctx.Locale.Tr "repo.issues.commit_ref_at" .EventTag $createdStr}} 165 165 {{end}} 166 166 </span> 167 - <div class="detail"> 167 + <div class="detail flex-text-block"> 168 168 {{svg "octicon-git-commit"}} 169 169 <span class="text grey muted-links">{{.Content | SanitizeHTML}}</span> 170 170 </div> ··· 256 256 {{ctx.Locale.Tr "repo.issues.stop_tracking_history" $createdStr}} 257 257 </span> 258 258 {{template "repo/issue/view_content/comments_delete_time" dict "ctxData" $ "comment" .}} 259 - <div class="detail"> 259 + <div class="detail flex-text-block"> 260 260 {{svg "octicon-clock"}} 261 261 {{if .RenderedContent}} 262 262 {{/* compatibility with time comments made before v1.21 */}} ··· 275 275 {{ctx.Locale.Tr "repo.issues.add_time_history" $createdStr}} 276 276 </span> 277 277 {{template "repo/issue/view_content/comments_delete_time" dict "ctxData" $ "comment" .}} 278 - <div class="detail"> 278 + <div class="detail flex-text-block"> 279 279 {{svg "octicon-clock"}} 280 280 {{if .RenderedContent}} 281 281 {{/* compatibility with time comments made before v1.21 */}} ··· 335 335 {{ctx.Locale.Tr "repo.issues.dependency.added_dependency" $createdStr}} 336 336 </span> 337 337 {{if .DependentIssue}} 338 - <div class="detail"> 338 + <div class="detail flex-text-block"> 339 339 {{svg "octicon-plus"}} 340 340 <span class="text grey muted-links"> 341 341 <a href="{{.DependentIssue.Link}}"> ··· 358 358 {{ctx.Locale.Tr "repo.issues.dependency.removed_dependency" $createdStr}} 359 359 </span> 360 360 {{if .DependentIssue}} 361 - <div class="detail"> 362 - <span class="text grey muted-links">{{svg "octicon-trash"}}</span> 361 + <div class="detail flex-text-block"> 362 + {{svg "octicon-trash"}} 363 363 <span class="text grey muted-links"> 364 364 <a href="{{.DependentIssue.Link}}"> 365 365 {{if eq .DependentIssue.RepoID .Issue.RepoID}} ··· 510 510 511 511 {{ctx.Locale.Tr "repo.issues.del_time_history" $createdStr}} 512 512 </span> 513 - <div class="detail"> 513 + <div class="detail flex-text-block"> 514 514 {{svg "octicon-clock"}} 515 515 {{if .RenderedContent}} 516 516 {{/* compatibility with time comments made before v1.21 */}}
+1 -5
web_src/css/repo.css
··· 1065 1065 1066 1066 .repository.view.issue .comment-list .event .detail { 1067 1067 margin-top: 4px; 1068 - margin-left: 14px; 1069 - } 1070 - 1071 - .repository.view.issue .comment-list .event .detail .svg { 1072 - margin-right: 2px; 1068 + margin-left: 15px; 1073 1069 } 1074 1070 1075 1071 .repository.view.issue .comment-list .event .segments {